public class SoNurbsProperty extends SoNode
SoNurbsSurface
when 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.
File format/default:
NurbsProperty {
drawStyle | NORMAL |
numSamplePoints | -1 |
color | 1 1 1 |
isoParamCurvesPattern | 0xFFFF |
tessellationType | CONSTANT |
tessellationDistance | 0.01 |
tessellationAngle | 0.35 |
Action behavior:
Sets: SoNurbsPropertyElement
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoNurbsProperty.DrawStyles
Draw style.
|
static class |
SoNurbsProperty.TessellationTypes
Tesselation type.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFColor |
color
Contains the color used to render trim curves and isoparametric curves.
|
SoSFBitMask<SoNurbsProperty.DrawStyles> |
drawStyle
Indicates which part of the NURBS surface to render.
|
SoSFUShort |
isoParamCurvesPattern
Sets a specific line pattern for isoparametric curves.
|
SoSFInt32 |
numSamplePoints
numSamplePoints is used during trim curve tessellation. |
SoSFFloat |
tessellationAngle
Used when tessellationType is set to ADAPTIVE.
|
SoSFFloat |
tessellationDistance
Used when tessellationType is set to ADAPTIVE.
|
SoSFEnum<SoNurbsProperty.TessellationTypes> |
tessellationType
Specifies the tessellation type.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoNurbsProperty()
Constructor.
|
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
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFBitMask<SoNurbsProperty.DrawStyles> drawStyle
DrawStyle
. Default is NORMAL.public final SoSFInt32 numSamplePoints
numSamplePoints
is 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 SoComplexity
node. 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 color
public final SoSFUShort isoParamCurvesPattern
public final SoSFEnum<SoNurbsProperty.TessellationTypes> tessellationType
public final SoSFFloat tessellationDistance
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.
public final SoSFFloat tessellationAngle
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com