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

SoNurbsCurve — NURBS curve shape node

Action Behavior

SoGLRenderAction
          Draws the curve based on the current coordinates, material, and so on.

     SoRayPickAction
          Picks the curve based on the current coordinates and transformation.

     SoGetBoundingBoxAction
          Computes  the  bounding  box  that  encloses  all  control  points  of  the  curve  with  the  current
          transformation applied to them. Sets the center to the average of the control points.

     SoCallbackAction
          If any line segment callbacks are registered with the action, they will be invoked for each successive
          segment approximating the curve.

Description

       This  class  represents  a NURBS curve, based on the knot vector and the control points that you specify.
       The knotVector field specifies a floating-point array of values; the values are the  coordinates  of  the
       knot  points  in the curve, and you must enter them in non-decreasing order. The curve will use the first
       numControlPoints values in the current coordinates as control points.

       If you specify n knots, you can specify up to n-8 control points.  The number of knots minus  the  number
       of control points is known as the order of the curve. A NURBS curve can have an order of up to 8.

       The  control points of the curve are transformed by the current transformation matrix. The curve is drawn
       with the current lighting model and drawing style  (drawing  style  FILLED  is  treated  as  LINES).  The
       coordinates, normals, and texture coordinates of a NURBS curve are generated, so you cannot bind explicit
       normals or texture coordinates to a NURBS curve.

       The approximation of the curve by line segments is affected by the current complexity value.

Fields

SoSFInt32numControlPoints
          Number of control points.

     SoMFFloatknotVector
          The knot vector.

File Format/Defaults

NurbsCurve{numControlPoints0knotVector0}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoShape > SoNurbsCurve

Methods

SoNurbsCurve()
          Creates a NURBS curve node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoNurbsCurve — NURBS curve shape node

See Also

SoIndexedNurbsCurve,SoNurbsSurfaceSoNurbsCurve(3IV)()

Synopsis

#include<Inventor/nodes/SoNurbsCurve.h>

          Fields from class SoNurbsCurve:

     SoSFInt32numControlPointsSoMFFloatknotVector

          Methods from class SoNurbsCurve:

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