Skip to content

Commit

Permalink
version 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
devshgraphicsprogramming committed Sep 7, 2017
1 parent 03fe822 commit 8112d53
Show file tree
Hide file tree
Showing 36 changed files with 3,166 additions and 4,703 deletions.
15 changes: 2 additions & 13 deletions examples_tests/12.Splines/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MyEventReceiver : public IEventReceiver
spline = NULL;
if (controlPts.size())
{
spline = new CQuadraticSpline(controlPts.pointer(),controlPts.size(),false);
spline = new irr::core::CQuadraticBSpline(controlPts.pointer(),controlPts.size(),false);
printf("Total Len %f\n",spline->getSplineLength());
for (size_t i=0; i<spline->getSegmentCount(); i++)
printf("Seg: %d \t\t %f\n",i,spline->getSegmentLength(i));
Expand All @@ -74,7 +74,7 @@ class MyEventReceiver : public IEventReceiver
spline = NULL;
if (controlPts.size())
{
spline = new CQuadraticSpline(controlPts.pointer(),controlPts.size(),false,true); //make it be ready for first turn
spline = new CQuadraticBSpline(controlPts.pointer(),controlPts.size(),true); //make it a loop
printf("Total Len %f\n",spline->getSplineLength());
for (size_t i=0; i<spline->getSegmentCount(); i++)
printf("Seg: %d \t\t %f\n",i,spline->getSegmentLength(i));
Expand All @@ -84,17 +84,6 @@ class MyEventReceiver : public IEventReceiver
}
case KEY_KEY_O:
{
if (spline)
delete spline;
spline = NULL;
if (controlPts.size())
{
spline = new CQuadraticSpline(controlPts.pointer(),controlPts.size(),true); //make it loop
printf("Total Len %f\n",spline->getSplineLength());
for (size_t i=0; i<spline->getSegmentCount(); i++)
printf("Seg: %d \t\t %f\n",i,spline->getSegmentLength(i));
}

return true;
}
break;
Expand Down
Loading

0 comments on commit 8112d53

Please sign in to comment.