man SoNurbsCurve () - NURBS curve shape node

NAME

SoNurbsCurve - NURBS curve shape node

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoShape > SoNurbsCurve

SYNOPSIS

#include <Inventor/nodes/SoNurbsCurve.h> Fields from class SoNurbsCurve: c } c } numControlPoints

c } c } knotVector Methods from class SoNurbsCurve: c } c } SoNurbsCurve()

c } c } getClassTypeId() Methods from class SoNode: c } c } setOverride(SbBool state)

c } c } isOverride() const

c } c } copy(SbBool copyConnections = FALSE) const

c } c } affectsState() const

c } c } getByName(const SbName &name)

c } c } getByName(const SbName &name, SoNodeList &list) Methods from class SoFieldContainer: c } c } setToDefaults()

c } c } hasDefaultValues() const

c } c } fieldsAreEqual(const SoFieldContainer *fc) const

c } c } copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)

c } c } set(const char *fieldDataString)

c } c } get(SbString &fieldDataString)

c } c } getFields(SoFieldList &resultList) const

c } c } getField(const SbName &fieldName) const

c } c } getFieldName(const SoField *field, SbName &fieldName) const

c } c } isNotifyEnabled() const

c } c } enableNotify(SbBool flag) Methods from class SoBase: c } c } ref()

c } c } unref() const

c } c } unrefNoDelete() const

c } c } touch()

c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setName(const SbName &name)

c } c } getName() const

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

c } c } numControlPoints

Number of control points. c } c } knotVector

The knot vector.

METHODS

c } c } SoNurbsCurve()

Creates a NURBS curve node with default settings. c } c } getClassTypeId()

Returns type identifier for this class.

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.

FILE FORMAT/DEFAULTS

NurbsCurve {
numControlPoints	0
knotVector	0
}

SEE ALSO

SoIndexedNurbsCurve, SoNurbsSurface