SoNurbsCurve Class Reference
[Shapes]

NURBS curve shape node. More...

#include <Inventor/nodes/SoNurbsCurve.h>

Inheritance diagram for SoNurbsCurve:
SoShape SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoNurbsCurve ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFInt32 numControlPoints
SoMFFloat knotVector

Detailed Description

NURBS curve shape node.

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.

Shape Antialiasing type is SoShape::LINES.

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoFullSceneAntialiasing, SoIndexedNurbsCurve, SoNurbsSurface

See related examples:

NurbsProperties


Constructor & Destructor Documentation

SoNurbsCurve::SoNurbsCurve (  ) 

Creates a NURBS curve node with default settings.


Member Function Documentation

static SoType SoNurbsCurve::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoShape.

virtual SoType SoNurbsCurve::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoShape.


Member Data Documentation

The knot vector.

Number of control points.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/