SurfaceIsocurveDensity

Returns or sets the isocurve density of a surface or polysurface object. An isoparametric curve is a curve of constant U or V value on a surface. Rhino uses isocurves and surface edge curves to visualize the shape of a NURBS surface.

Syntax

rhinoscriptsyntax.SurfaceIsocurveDensity (surface_id, density=None)

rhinoscript.surface.SurfaceIsocurveDensity (surface_id, density=None)

Parameters

surface_id

Required.  String or Guid.  The object's identifier.

density

Optional.  Number.  The isocurve wireframe density.  The possible values are as follows:

Value

Description

-1

Hides surface isocurves.

0        

Display boundary and knot wires.

1

Display boundary and knot wires and one interior wire if there are no interior knots.

>= 2

Display boundary and knot wires and (N+1) interior wires.

Returns

Number

If density is not specified, then the current isocurve density if successful.

Number

If density is specified, then the previous isocurve density if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a surface", rs.filter.surface | rs.filter.polysurface)

if obj: rs.SurfaceIsocurveDensity( obj, 8 )

Also See

IsPolysurface

IsSurface