Class SoIndexedNurbsSurface
- 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
-
- com.openinventor.inventor.nodes.SoIndexedNurbsSurface
-
- All Implemented Interfaces:
SafeDisposable
public class SoIndexedNurbsSurface extends SoNurbsSurface
Indexed NURBS surface shape node. This shape node represents a NURBS surface based on the knot vectors and the control points that you specify. TheuKnotVector
andvKnotVector
fields specify floating-point arrays of values; the values are the coordinates of the knot points in the surface, and you must enter them in non-decreasing order. ThenumUControlPoints
andnumVControlPoints
fields specify the number of control points the surface will have in the U and V parametric directions, and will use the current coordinates that are indexed from thecoordIndex
field.You can get a surface of minimum order (2) in the U or V directions by specifying two more knots than control points in that direction and having at least two control points in that direction. This surface would appear creased in one direction.
You can get a surface of maximum order (8) in the U or V directions by specifying eight more knots than control points in that direction and having at least eight control points in that direction.
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 profiles 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.
NOTE:
- The fields
textureCoordIndex
,numSControlPoints
,numTControlPoints
,sKnotVector
andtKnotVector
are not used.
File format/default:
IndexedNurbsSurface {
numUControlPoints 0 numVControlPoints 0 numSControlPoints 0 numTControlPoints 0 coordIndex 0 uKnotVector 0 vKnotVector 0 sKnotVector 0 tKnotVector 0 textureCoordIndex -1 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.
-
-
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 SoMFInt32
coordIndex
Coordinate indices.SoMFInt32
textureCoordIndex
Texture coordinate indices.-
Fields inherited from class com.openinventor.inventor.nodes.SoNurbsSurface
numSControlPoints, numTControlPoints, numUControlPoints, numVControlPoints, sKnotVector, tKnotVector, uKnotVector, vKnotVector
-
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 SoIndexedNurbsSurface()
Creates an indexed 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
-
-