namespace Paths
template <size_t Order>
class Nurbs
Files: Nurbs.h
Nurbs-inheritance Scopes/Path.html

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:
 constructorNurbs()
 voidinsert_control_point(double knot, const Vertex& vertex, double weight)
virtual voiddraw()

Private Data members Summary:
std::vector<Vertex>_controls
std::vector<double>_weights
std::vector<double>_knots

Public Member function Details:
 constructor Nurbs()

Create a new Nurbs curve.

 void insert_control_point(double knot, const Vertex& vertex, double weight)

Inserts a control point with the given weight. The knot value determines the position in the sequence.

Parameters:
knot - the parameter value at which to insert a new knot
vertex - the control point
weight - the weight of the control point
Private Data member Details:
std::vector<Vertex> _controls

The data...