Commit 66a9877f authored by Lars Krecklau's avatar Lars Krecklau
Browse files

Added support for changing the control points of a NURBS curve (closes #63).

parent 0191bfdf
......@@ -61,6 +61,9 @@ public:
const std::vector<NURBSControlPointType>& getControlPoints (void) const { return mControlPoints; }
const std::vector<float>& getKnots (void) const { return mKnots; }
NURBSControlPointType& getControlPointAt (typename std::vector<NURBSControlPointType>::size_type _i) { return mControlPoints[_i]; }
float& getKnotAt (typename std::vector<float>::size_type _i) { return mKnots[_i]; }
// http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/NURBS/NURBS-knot-insert.html
void insertKnot(float _t)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment