File: Nurbs.h
1| #ifndef _Nurbs_h
2| #define _Nurbs_h
3|
4| #include "Path.h"
5| #include <vector>
6|
7| namespace Paths
8| {
9|
10|
11|
12|
13|
14|
15|
16| template <size_t Order>
17| class Nurbs : public Path
18| {
19| public:
20|
21|
22|
23| Nurbs();
24|
25|
26|
27|
28|
29|
30|
31| void insert_control_point(double knot, const Vertex &vertex,
32| double weight);
33| virtual void draw();
34| private:
35|
36|
37|
38| std::vector<Vertex> _controls;
39| std::vector<double> _weights;
40| std::vector<double> _knots;
41| };
42|
43| }
44|
45| #endif