namespace Paths
template <size_t Order>
class Nurbs
Paths.Nurbs-inheritance 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:
 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.

virtual void draw()
Private Data members Summary:
std::vector<Vertex> controls_

The data...

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...