Class SoNurbsProfile
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodes.SoProfile
-
- com.openinventor.inventor.nodes.SoNurbsProfile
-
- All Implemented Interfaces:
SafeDisposable
public class SoNurbsProfile extends SoProfile
NURBS profile curve. This node specifies a NURBS curve that is used as a profile.When a NURBS shape is rendered, its NURBS profile is constructed using the NURBS profile information from this node and the current profile coordinates. (Note: Here "current" means at the time the NURBS shape is traversed, not when the
SoNurbsProfile
is traversed.)The curve is defined in the same way as a standard
SoNurbsCurve
, except that the control points are constructed from the current set of profile coordinates, using the index field.When two profiles share the same boundary, the corresponding NURBS surfaces will be joined along these profiles, producing crack-free tessellation. Two profiles share the same boundary when their
boundary
fields contain the sameSoNurbsBoundary
node. To be rendered crack free, the surfaces must be part of the sameSoNurbsGroup
.Note: Trimmed NURBS are correctly displayed only if an outer boundary is defined (must have counterclockwise orientation).
File format/default:
NurbsProfile {
index 0 linkage START_FIRST knotVector 0 boundary 0 Action behavior:
SoGLRenderAction
,SoCallbackAction
,SoRayPickAction
Adds a profile to the current traversal state.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoProfile
SoProfile.Profiles
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFNode
boundary
Associate the profile with the specified boundary using anSoNurbsBoundary
node.SoMFFloat
knotVector
The knot vector for the NURBS curve.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoNurbsProfile()
Creates a NURBS profile curve node with default settings.
-
Method Summary
-
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
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
knotVector
public final SoMFFloat knotVector
The knot vector for the NURBS curve. It must be a list of non-decreasing floating point values.
-
boundary
public final SoSFNode boundary
Associate the profile with the specified boundary using anSoNurbsBoundary
node. All profiles which are associated with the same boundary are joined together.- Since:
- Open Inventor 6.0
-
-