- All Implemented Interfaces:
public class SoNurbsProperty extends SoNodeNode that defines additional properties for rendering a NURBS surface. This node defines an additional set of properties used by
SoNurbsSurfacewhen rendering NURBS surfaces.
For a large NURBS surface, it is sometimes more effective to display two central isoparametric curves rather than facet boundaries (as in wireframe mode) because the latter may provide an overly complicated view of the surface.
This node allows you to specify the NURBS draw style; the color of the trim curves, boundaries and isoparametric curves; the line pattern of the isoparametric curves; the number of sample points between trim curves control points; the type of tessellation; angle and distance for adaptive tessellation.
The NURBS draw style is a bitmask specifying which combination of the following representations to use for displaying the NURBS: normal display, trim curves and boundaries, and/or central isoparametric curves.
Turning off the normal NURBS surface display, and turning on the display of trim curves, boundaries and isoparametric curves can dramatically speed up rendering of large models.
When in ADAPTIVE tessellation mode, regions with a low curvature will be less tessellated than regions with a high curvature.
drawStyle NORMAL numSamplePoints -1 color 1 1 1 isoParamCurvesPattern 0xFFFF tessellationType CONSTANT tessellationDistance 0.01 tessellationAngle 0.35
- See Also:
Nested Class Summary
Nested Classes Modifier and Type Class Description
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
Fields Modifier and Type Field Description
colorContains the color used to render trim curves and isoparametric curves.
drawStyleIndicates which part of the NURBS surface to render.
isoParamCurvesPatternSets a specific line pattern for isoparametric curves.
numSamplePointsis used during trim curve tessellation.
tessellationAngleUsed when tessellationType is set to ADAPTIVE.
tessellationDistanceUsed when tessellationType is set to ADAPTIVE.
tessellationTypeSpecifies the tessellation type.
Constructors Constructor Description
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
public final SoSFBitMask<SoNurbsProperty.DrawStyles> drawStyleIndicates which part of the NURBS surface to render. Use enum
DrawStyle. Default is NORMAL.
public final SoSFInt32 numSamplePoints
numSamplePointsis used during trim curve tessellation. It specifies the exact number of points to generate between two trim curve control points. If set to -1 (the default), the number of points generated is computed from the
SoComplexitynode. Setting this field to a small value (less than 3) can reduce the number of triangles generated by the tessellation and thus increase the drawing performance of trimmed NURBS surfaces.
public final SoSFColor colorContains the color used to render trim curves and isoparametric curves.
public final SoSFUShort isoParamCurvesPatternSets a specific line pattern for isoparametric curves.
public final SoSFEnum<SoNurbsProperty.TessellationTypes> tessellationTypeSpecifies the tessellation type. . Default is CONSTANT.
- Open Inventor 6.0
public final SoSFFloat tessellationDistanceUsed when tessellationType is set to ADAPTIVE. The maximum tessellation step size (curvilinear distance) is this fraction of the diagonal of the bounding box of the surface or the group of surfaces (
SoNurbsGroup). Increasing this value make the tessellation more dependent on
tessellationAngle. Default value is 0.01. That is, the distance must not be more than 1% of the diagonal of the bounding box.
- Open Inventor 6.0
public final SoSFFloat tessellationAngleUsed when tessellationType is set to ADAPTIVE. Specifies the maximum angle (in radians) between the normals of two adjacent tessellated faces. Decreasing this value adds more tessellation points on flat parts of the surface. Default value is 0.35
- Open Inventor 6.0