FBNurbs Class Reference


Detailed Description

Nurbs class.

Inheritance diagram for FBNurbs:

List of all members.

Public Member Functions

 __init__ (str pName, object pObject=None)
 Constructor.
 SurfaceBegin ()
 Begin NURBS definition.
 SurfaceEnd ()
 End NURBS definition.
 SurfaceEditBegin ()
 Begin NURBS surface edition.
 SurfaceEditEnd ()
 End NURBS surface edition.
 ControlPointsBegin ()
 Begin NURBS control points edition.
 ControlPointsEnd ()
 End NURBS control points edition.
 SetControlWeight (int pIndex, float pWeight)
 Set weight of control point.
float GetControlWeight (int pIndex)
 Get weight of control point.
 SetControlMultiplicity (int pUorV, int pIndex, int pMultiplicity)
 Set multiplicity (number of "instances") of control point.
int GetControlMultiplicity (int pUorV, int pIndex)
 Get multiplicity (number of "instances") of control point.
 SetControlKnotValue (int pUorV, int pIndex, float pKnotValue)
 Set knot vector value of control point.
float GetControlKnotValue (int pUorV, int pIndex)
 Get knot vector value of control point.
int GetKnotCount (int pUorV)
 Number of knot vectors.

Public Attributes

FBPropertyBase UOrder
 Read Write Property: Nurbs U order.
FBPropertyBase VOrder
 Read Write Property: Nurbs V order.
FBPropertyNurbType UNurbType
 Read Write Property: Nurbs Type for U direction.
FBPropertyNurbType VNurbType
 Read Write Property: Nurbs Type for V direction.

Member Function Documentation

__init__ ( str  pName,
object  pObject = None 
)

Constructor.

Parameters:
pNameName of Nurbs.
pObjectFor internal use only(default=NULL).

Reimplemented from FBSurface.

SurfaceBegin ( )

Begin NURBS definition.

Reimplemented from FBSurface.

SurfaceEnd ( )

End NURBS definition.

Reimplemented from FBSurface.

SurfaceEditBegin ( )

Begin NURBS surface edition.

Reimplemented from FBSurface.

SurfaceEditEnd ( )

End NURBS surface edition.

Reimplemented from FBSurface.

ControlPointsBegin ( )

Begin NURBS control points edition.

Reimplemented from FBSurface.

ControlPointsEnd ( )

End NURBS control points edition.

Reimplemented from FBSurface.

SetControlWeight ( int  pIndex,
float  pWeight 
)

Set weight of control point.

Parameters:
pIndexIndex of control point to set weight at.
pWeightWeight of control point.
float GetControlWeight ( int  pIndex)

Get weight of control point.

Parameters:
pIndexIndex of control point to get weight from.
Returns:
Weight of control point at index pIndex.
SetControlMultiplicity ( int  pUorV,
int  pIndex,
int  pMultiplicity 
)

Set multiplicity (number of "instances") of control point.

Parameters:
pUorV1 if V multiplicity, 0 if U multlipicity.
pIndexIndex of control point to set multiplicity for.
pMultiplicityMultiplicity value for control point at pIndex.
int GetControlMultiplicity ( int  pUorV,
int  pIndex 
)

Get multiplicity (number of "instances") of control point.

Parameters:
pUorV1 if V multiplicity, 0 if U multlipicity.
pIndexIndex of control point to get multiplicity for.
SetControlKnotValue ( int  pUorV,
int  pIndex,
float  pKnotValue 
)

Set knot vector value of control point.

Parameters:
pUorV1 if V knot vector, 0 if U knot vector.
pIndexIndex of control point to set knot value for.
pKnotValueKnot value for control point at pIndex.
float GetControlKnotValue ( int  pUorV,
int  pIndex 
)

Get knot vector value of control point.

Parameters:
pUorV1 if V knot vector, 0 if U knot vector.
pIndexIndex of control point to set knot value for.
int GetKnotCount ( int  pUorV)

Number of knot vectors.

Parameters:
pUorV1 if V knot vector, 0 if U knot vector.
Returns:
Number of knot vectors on NURBS surface

Member Data Documentation

FBPropertyBase UOrder

Read Write Property: Nurbs U order.

FBPropertyBase VOrder

Read Write Property: Nurbs V order.

FBPropertyNurbType UNurbType

Read Write Property: Nurbs Type for U direction.

FBPropertyNurbType VNurbType

Read Write Property: Nurbs Type for V direction.


FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs
FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs FBNurbs