Provided by: inventor-doc_2.1.5-10-18_all

**NAME**

SoNurbsSurface — NURBS surface shape node

**INHERITS** **FROM**

SoBase > SoFieldContainer > SoNode > SoShape > SoNurbsSurface

**SYNOPSIS**

#include<Inventor/nodes/SoNurbsSurface.h>Fields from class SoNurbsSurface:SoSFInt32numUControlPointsSoSFInt32numVControlPointsSoSFInt32numSControlPointsSoSFInt32numTControlPointsSoMFFloatuKnotVectorSoMFFloatvKnotVectorSoMFFloatsKnotVectorSoMFFloattKnotVectorMethods from class SoNurbsSurface:SoNurbsSurface()staticSoTypegetClassTypeId()Methods from class SoNode:voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)Methods from class SoFieldContainer:voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)Methods from class SoBase:voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

**DESCRIPTION**

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 thenumUControlPointsandnumVControlPointsfields. TheuKnotVectorandvKnotVectorfields 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 approximation of the surface by polygons is affected by the current complexity value.

**FIELDS**

SoSFInt32numUControlPointsSoSFInt32numVControlPointsNumber of control points in the U and V directions.SoSFInt32numSControlPointsSoSFInt32numTControlPointsNumber of control points in the S and T directions.SoMFFloatuKnotVectorSoMFFloatvKnotVectorThe knot vectors in the U and V directions.SoMFFloatsKnotVectorSoMFFloattKnotVectorThe knot vectors in the S and T directions.

**METHODS**

SoNurbsSurface()Creates a NURBS surface node with default settings.staticSoTypegetClassTypeId()Returns type identifier for this class.

**ACTION** **BEHAVIOR**

SoGLRenderActionDraws the surface based on the current coordinates, material, and so on.SoRayPickActionPicks the surface based on the current coordinates and transformation.SoGetBoundingBoxActionComputes 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.SoCallbackActionIf any triangle callbacks are registered with the action, they will be invoked for each successive triangle approximating the surface.

**FILE** **FORMAT/DEFAULTS**

NurbsSurface{numUControlPoints0numVControlPoints0numSControlPoints0numTControlPoints0uKnotVector0vKnotVector0sKnotVector0tKnotVector0}

**SEE** **ALSO**

SoIndexedNurbsSurface,SoNurbsCurve,SoProfileSoNurbsSurface(3IV)()