Class SoNurbsSurface
- 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.SoShape
-
- com.openinventor.inventor.nodes.SoNurbsSurface
-
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
SoIndexedNurbsSurface
public class SoNurbsSurface extends SoShape
NURBS surface shape node. This shape node represents a NURBS surface based on the node's knot vectors and on control points constructed from the current coordinates. The current coordinates are used in row-major order (the V direction corresponds to the rows). The number of coordinates used is determined by thenumUControlPoints
andnumVControlPoints
fields. TheuKnotVector
andvKnotVector
fields contain floating point arrays of non-decreasing values.The order of the surface in the U and V directions is defined as the number of knots minus the number of control points in the particular direction. The largest order allowed for a NURBS surface is 8.
The control points of the NURBS surface are transformed by the current cumulative transformation. The surface is drawn with the current light model and drawing style. The coordinates, normals, and texture coordinates of a surface are generated, so you cannot bind explicit normals or texture coordinates to a NURBS surface. The first material in the state is applied to the entire surface.
The surface is trimmed according to the currently defined profile's curves.
When default texture coordinates are applied to a NURBS surface, the edges of the texture square are stretched to fit the surface. The axes of the texture are called S and T; S is horizontal and T is vertical. The axes of the NURBS surface are called U and V; U is horizontal and V is vertical. You can also define texture coordinates explicitly with the S,T location point, the knot vectors, and the current texture coordinates. The number of texture coordinates used is determined by the
numSControlPoints
andnumTControlPoints
fields.The approximation of the surface by polygons is affected by the current complexity value.
NOTE:
- The fields
numSControlPoints
,numTControlPoints
,sKnotVector
andtKnotVector
are not used.
File format/default:
NurbsSurface {
numUControlPoints 0 numVControlPoints 0 numSControlPoints 0 numTControlPoints 0 uKnotVector 0 vKnotVector 0 sKnotVector 0 tKnotVector 0 Action behavior:
SoGLRenderAction
Draws the surface based on the current coordinates, material, and so on.SoRayPickAction
Picks the surface based on the current coordinates and transformation.SoGetBoundingBoxAction
Computes the bounding box that encloses all control points of the surface with the current transformation applied to them. Sets the center to the average of the control points.SoCallbackAction
If any triangle callbacks are registered with the action, they will be invoked for each successive triangle approximating the surface.- See Also:
SoIndexedNurbsSurface
,SoNurbsCurve
,SoNurbsProperty
,SoProfile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoShape
SoShape.ShapeTypes
-
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 SoSFInt32
numSControlPoints
Number of control points in the S direction.SoSFInt32
numTControlPoints
Number of control points in the T direction.SoSFInt32
numUControlPoints
Number of control points in the U direction.SoSFInt32
numVControlPoints
Number of control points in the V direction.SoMFFloat
sKnotVector
The knot vectors in the S direction.SoMFFloat
tKnotVector
The knot vectors in the T direction.SoMFFloat
uKnotVector
The knot vectors in the U direction.SoMFFloat
vKnotVector
The knot vectors in the V direction.-
Fields inherited from class com.openinventor.inventor.nodes.SoShape
boundingBoxIgnoring
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoNurbsSurface()
Creates a NURBS surface node with default settings.
-
Method Summary
-
Methods inherited from class com.openinventor.inventor.nodes.SoShape
getShapeType, isPrimitiveRestartAvailable, isPrimitiveRestartAvailable
-
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
-
numUControlPoints
public final SoSFInt32 numUControlPoints
Number of control points in the U direction. Default is 0.
-
numVControlPoints
public final SoSFInt32 numVControlPoints
Number of control points in the V direction. Default is 0.
-
numSControlPoints
public final SoSFInt32 numSControlPoints
Number of control points in the S direction. Default is 0. Not used.
-
numTControlPoints
public final SoSFInt32 numTControlPoints
Number of control points in the T direction. Default is 0. Not used.
-
uKnotVector
public final SoMFFloat uKnotVector
The knot vectors in the U direction. Default is 0.
-
vKnotVector
public final SoMFFloat vKnotVector
The knot vectors in the V direction. Default is 0.
-
sKnotVector
public final SoMFFloat sKnotVector
The knot vectors in the S direction. Default is 0. Not used.
-
tKnotVector
public final SoMFFloat tKnotVector
The knot vectors in the T direction. Default is 0. Not used.
-
-