GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SONURBSSURFACE (3)

NAME

SoNurbsSurface — NURBS surface shape node

CONTENTS

Inherits From
Synopsis
Description
Fields
Methods
Action Behavior
File Format/defaults
See Also

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoShape > SoNurbsSurface

SYNOPSIS

#include <Inventor/nodes/SoNurbsSurface.h>

Fields from class SoNurbsSurface:

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

Methods from class SoNurbsSurface:

       
                    
                     SoNurbsSurface()    
static SoType    
                    
static SoType        getClassTypeId()

Methods from class SoNode:

    void    
                    
void                 setOverride(SbBool state)    
SbBool    
                    
SbBool               isOverride() const    
SoNode *    
                    
SoNode *             copy(SbBool copyConnections = FALSE) const    
virtual SbBool    
                    
virtual SbBool       affectsState() const    
static SoNode *    
                    
static SoNode *      getByName(const SbName &name)    
static int    
                    
static int           getByName(const SbName &name, SoNodeList &list)

Methods from class SoFieldContainer:

    void    
                    
void                 setToDefaults()    
SbBool    
                    
SbBool               hasDefaultValues() const    
SbBool    
                    
SbBool               fieldsAreEqual(const SoFieldContainer *fc) const    
void    
                    
void                 copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)    
SbBool    
                    
SbBool               set(const char *fieldDataString)    
void    
                    
void                 get(SbString &fieldDataString)    
virtual int    
                    
virtual int          getFields(SoFieldList &resultList) const    
virtual SoField *    
                    
virtual SoField *    getField(const SbName &fieldName) const    
SbBool    
                    
SbBool               getFieldName(const SoField *field, SbName &fieldName) const    
SbBool    
                    
SbBool               isNotifyEnabled() const    
SbBool    
                    
SbBool               enableNotify(SbBool flag)

Methods from class SoBase:

    void    
                    
void                 ref()    
void    
                    
void                 unref() const    
void    
                    
void                 unrefNoDelete() const    
void    
                    
void                 touch()    
virtual SoType    
                    
virtual SoType       getTypeId() const    
SbBool    
                    
SbBool               isOfType(SoType type) const    
virtual void    
                    
virtual void         setName(const SbName &name)    
virtual SbName    
                    
virtual SbName       getName() const

DESCRIPTION

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 approximation of the surface by polygons is affected by the current complexity value.

FIELDS

    SoSFInt32    
                    
SoSFInt32            numUControlPoints    
SoSFInt32    
                    
SoSFInt32            numVControlPoints
Number of control points in the U and V directions.

    SoSFInt32    
                    
SoSFInt32            numSControlPoints    
SoSFInt32    
                    
SoSFInt32            numTControlPoints
Number of control points in the S and T directions.

    SoMFFloat    
                    
SoMFFloat            uKnotVector    
SoMFFloat    
                    
SoMFFloat            vKnotVector
The knot vectors in the U and V directions.

    SoMFFloat    
                    
SoMFFloat            sKnotVector    
SoMFFloat    
                    
SoMFFloat            tKnotVector
The knot vectors in the S and T directions.

METHODS

       
                    
                     SoNurbsSurface()
Creates a NURBS surface node with default settings.

    static SoType    
                    
static SoType        getClassTypeId()
Returns type identifier for this class.

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.

FILE FORMAT/DEFAULTS

NurbsSurface {



numUControlPoints  0
numVControlPoints  0
numSControlPoints  0
numTControlPoints  0
uKnotVector        0
vKnotVector        0
sKnotVector        0
tKnotVector        0


}

SEE ALSO

SoIndexedNurbsSurface, SoNurbsCurve, SoProfile

Search for    or go to Top of page |  Section 3 |  Main Index


SONURBSSURFACE(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.