Commit 2da7b7dc authored by Ellen Dekkers's avatar Ellen Dekkers
Browse files

x

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10200 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 86701a18
......@@ -154,8 +154,7 @@ add_control_point(const Point& _cp)
// update knot vector
if (autocompute_knotvector_)
knotvector_.createKnots(degree_, control_polygon_.size()-1);
knotvector_.createKnots(degree_, control_polygon_.size());
// add available properties
if( controlpoint_selections_available())
......@@ -180,7 +179,7 @@ insert_control_point(int _idx, const Point& _cp)
// update knot vector
if (autocompute_knotvector_)
knotvector_.createKnots(degree_, control_polygon_.size()-1);
knotvector_.createKnots(degree_, control_polygon_.size());
else{
// compute knot in between its wo neighbors
double knot = ( knotvector_(_idx-1) + knotvector_(_idx+1) ) / 2.0;
......@@ -211,7 +210,7 @@ delete_control_point(int _idx)
// update knot vector
if (autocompute_knotvector_)
knotvector_.createKnots(degree_, control_polygon_.size()-1);
knotvector_.createKnots(degree_, control_polygon_.size());
else{
// delete knot at given index
knotvector_.deleteKnot(_idx);
......
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