SoNurbsSurface Class Reference
[Shapes]

NURBS surface shape node. More...

#include <Inventor/nodes/SoNurbsSurface.h>

Inheritance diagram for SoNurbsSurface:
SoShape SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoNurbsSurface ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFInt32 numUControlPoints
SoSFInt32 numVControlPoints
SoSFInt32 numSControlPoints
SoSFInt32 numTControlPoints
SoMFFloat uKnotVector
SoMFFloat vKnotVector
SoMFFloat sKnotVector
SoMFFloat tKnotVector

Detailed Description

NURBS surface shape node.

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 the numUControlPoints and numVControlPoints fields. The uKnotVector and vKnotVector fields 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 number of texture coordinates used is determined by the numSControlPoints and numTControlPoints fields.

The approximation of the surface by polygons is affected by the current complexity value.

NOTE:

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoIndexedNurbsSurface, SoNurbsCurve, SoNurbsProperty, SoProfile

See related examples:

NurbsProperties


Constructor & Destructor Documentation

SoNurbsSurface::SoNurbsSurface (  ) 

Creates a NURBS surface node with default settings.


Member Function Documentation

static SoType SoNurbsSurface::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoShape.

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

Returns the type identifier for this specific instance.

Reimplemented from SoShape.


Member Data Documentation

Number of control points in the S direction.

Default is 0. Only used if OIV_FORCE_GLU_NURB is set to 1.

Number of control points in the T direction.

Default is 0. Only used if OIV_FORCE_GLU_NURB is set to 1.

Number of control points in the U direction.

Default is 0.

Number of control points in the V direction.

Default is 0.

The knot vectors in the S direction.

Default is 0. Only used if OIV_FORCE_GLU_NURB is set to 1.

The knot vectors in the T direction.

Default is 0. Only used if OIV_FORCE_GLU_NURB is set to 1.

The knot vectors in the U direction.

Default is 0.

The knot vectors in the V direction.

Default is 0.


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/