logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoIndexedNurbsSurface — indexed NURBS surface shape node

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.

Description

       This  shape  node  represents  a  NURBS surface based on the knot vectors and the control points that you
       specify. The uKnotVector and vKnotVector 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. The
       numUControlPoints and numVControlPoints 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  the
       coordIndex 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.

Fields

SoSFInt32numUControlPointsSoSFInt32numVControlPoints
          Number of control points in the U and V directions.

     SoMFInt32coordIndex
          Coordinate indices.

     SoMFFloatuKnotVectorSoMFFloatvKnotVector
          The knot vectors in the U and V directions.

     SoSFInt32numSControlPointsSoSFInt32numTControlPoints
          Number of control points in the S and T directions.

     SoMFInt32textureCoordIndex
          Texture coordinate indices.

     SoMFFloatsKnotVectorSoMFFloattKnotVector
          The knot vectors in the S and T directions.

File Format/Defaults

IndexedNurbsSurface{numUControlPoints0numVControlPoints0numSControlPoints0numTControlPoints0coordIndex0uKnotVector0vKnotVector0sKnotVector0tKnotVector0textureCoordIndex-1}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoShape > SoIndexedNurbsSurface

Methods

SoIndexedNurbsSurface()
          Creates an indexed NURBS surface node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoIndexedNurbsSurface — indexed NURBS surface shape node

See Also

SoIndexedNurbsCurve,SoNurbsSurface,SoProfileSoIndexedNurbsSurface(3IV)()

Synopsis

#include<Inventor/nodes/SoIndexedNurbsSurface.h>

          Fields from class SoIndexedNurbsSurface:

     SoSFInt32numUControlPointsSoSFInt32numVControlPointsSoMFInt32coordIndexSoMFFloatuKnotVectorSoMFFloatvKnotVectorSoSFInt32numSControlPointsSoSFInt32numTControlPointsSoMFInt32textureCoordIndexSoMFFloatsKnotVectorSoMFFloattKnotVector

          Methods from class SoIndexedNurbsSurface:

                         SoIndexedNurbsSurface()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

See Also