The Nurbs class. It implements a nurbs curve for the given order. It is a very powerful and flexible curve representation. For simpler cases you may prefer to use a Bezier curve.
Public Member functions Summary: | |
constructor | Nurbs() |
void | insert_control_point(double knot, const Vertex& vertex, double weight) |
virtual void | draw() |
Private Data members Summary: | |
std::vector<Vertex> | _controls |
std::vector<double> | _weights |
std::vector<double> | _knots |
Public Member function Details: |
Create a new Nurbs curve.
Inserts a control point with the given weight. The knot value determines the position in the sequence.
Private Data member Details: |
The data...