public class SoNurbsSurface extends SoShape
vKnotVectorfields 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
The approximation of the surface by polygons is affected by the current complexity value.
SoComplexity.type== SCREEN_SPACE. Be careful as tessellation may take a significant amount of time when the camera is very close to the surface.
SoComplexity.type== OBJECT_SPACE and OIV_FORCE_GLU_NURB is not set), an Open Inventor NURBS algorithm is used.
tKnotVectorare not used unless OIV_FORCE_GLU_NURB is set to 1.
Draws the surface based on the current coordinates, material, and so on.
Picks the surface based on the current coordinates and transformation.
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.
If any triangle callbacks are registered with the action, they will be invoked for each successive triangle approximating the surface.
|Modifier and Type||Field and Description|
Number of control points in the S direction.
Number of control points in the T direction.
Number of control points in the U direction.
Number of control points in the V direction.
The knot vectors in the S direction.
The knot vectors in the T direction.
The knot vectors in the U direction.
The knot vectors in the V direction.
boundingBoxIgnoring, LINES, POINTS, POLYGONS, TEXT
|Constructor and Description|
Creates a NURBS surface node with default settings.
getShapeType, isPrimitiveRestartAvailable, isPrimitiveRestartAvailable
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, 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, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFInt32 numUControlPoints
public final SoSFInt32 numVControlPoints
public final SoSFInt32 numSControlPoints
public final SoSFInt32 numTControlPoints
public final SoMFFloat uKnotVector
public final SoMFFloat vKnotVector
public final SoMFFloat sKnotVector
public final SoMFFloat tKnotVector
Generated on January 29, 2020, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com