Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
NurbsCurve Class Reference

A Nonuniform Rational B-Spline. More...

Inheritance diagram for NurbsCurve:
PiecewiseCurve NurbsCurveInterface ParametricCurve PandaNode TypedWritable Namable LinkedListNode ReferenceCount TypedObject

List of all members.

Public Member Functions

 NurbsCurve ()
 NurbsCurve (ParametricCurve const pc)
 Constructs a NURBS curve equivalent to the indicated (possibly non-NURBS) curve.

Static Public Member Functions

static TypeHandle getClassType ()

Detailed Description

A Nonuniform Rational B-Spline.

This class is actually implemented as a PiecewiseCurve made up of several CubicCurvesegs, each of which is created using the nurbs_basis() method. The list of CV's and knots is kept here, within the NurbsCurve class.

This class is the original Panda-native implementation of a NURBS curve. It is typedeffed as "NurbsCurve" and performs all NURBS curve functions if we do not have the NURBS++ library available.

However, if we *do* have the NURBS++ library, another class exists, the NurbsPPCurve, which is a wrapper around that library and provides some additional functionality. In that case, the other class is typedeffed to "NurbsCurve" instead of this one, and performs most of the NURBS curve functions. This class then becomes vestigial.


Constructor & Destructor Documentation

NurbsCurve ( ParametricCurve const  pc)

Constructs a NURBS curve equivalent to the indicated (possibly non-NURBS) curve.


Member Function Documentation

static TypeHandle getClassType ( ) [static]

Reimplemented from PiecewiseCurve.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties