This abstract class defines the interface only for a Nurbs-style curve, with knots and coordinates in homogeneous space. More...
#include "nurbsCurveInterface.h"
Public Member Functions | |
int | append_cv (PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) |
int | append_cv (const LVecBase3 &v) |
int | append_cv (const LVecBase4 &v) |
virtual LVecBase4 | get_cv (int n) const =0 |
LVecBase3 | get_cv_point (int n) const |
Returns the position of the indicated CV. More... | |
PN_stdfloat | get_cv_weight (int n) const |
Returns the weight of the indicated CV. More... | |
virtual PN_stdfloat | get_knot (int n) const =0 |
virtual int | get_num_cvs () const =0 |
virtual int | get_num_knots () const =0 |
virtual int | get_order () const =0 |
virtual bool | insert_cv (PN_stdfloat t)=0 |
virtual void | remove_all_cvs ()=0 |
virtual bool | remove_cv (int n)=0 |
virtual bool | set_cv (int n, const LVecBase4 &v)=0 |
bool | set_cv_point (int n, PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) |
Repositions the indicated CV. More... | |
bool | set_cv_point (int n, const LVecBase3 &v) |
Repositions the indicated CV. More... | |
bool | set_cv_weight (int n, PN_stdfloat w) |
Sets the weight of the indicated CV without affecting its position in 3-d space. More... | |
virtual bool | set_knot (int n, PN_stdfloat t)=0 |
virtual void | set_order (int order)=0 |
void | write_cv (std::ostream &out, int n) const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Public Attributes | |
get_cv | |
get_knot | |
get_num_cvs | |
get_num_knots | |
This abstract class defines the interface only for a Nurbs-style curve, with knots and coordinates in homogeneous space.
The NurbsCurve class inherits both from this and from ParametricCurve.
Definition at line 30 of file nurbsCurveInterface.h.
|
inline |
Returns the position of the indicated CV.
Definition at line 59 of file nurbsCurveInterface.I.
|
inline |
Returns the weight of the indicated CV.
Definition at line 70 of file nurbsCurveInterface.I.
|
inline |
Repositions the indicated CV.
Returns true if successful, false otherwise.
Definition at line 42 of file nurbsCurveInterface.I.
|
inline |
Repositions the indicated CV.
Returns true if successful, false otherwise.
Definition at line 50 of file nurbsCurveInterface.I.
bool NurbsCurveInterface::set_cv_weight | ( | int | n, |
PN_stdfloat | w | ||
) |
Sets the weight of the indicated CV without affecting its position in 3-d space.
Definition at line 32 of file nurbsCurveInterface.cxx.