MCPcopy Create free account
hub / github.com/andrewwillmott/splines-lib / SubdivideForT

Function SubdivideForT

Splines.cpp:1416–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1414 }
1415
1416 void SubdivideForT(const Spline2& s, vector<Spline2>* splines, float tolerance)
1417 {
1418 float splitT;
1419 float err = ArcError(s, &splitT);
1420
1421 if (err <= tolerance)
1422 splines->push_back(s);
1423 else
1424 {
1425 Spline2 s1, s2;
1426 Split(s, splitT, &s1, &s2);
1427
1428 SubdivideForT(s1, splines, tolerance);
1429 SubdivideForT(s2, splines, tolerance);
1430 }
1431 }
1432}
1433
1434void SL::SubdivideForT(vector<Spline2>* splinesIn, float tolerance)

Callers 1

SubdivideForTMethod · 0.85

Calls 2

ArcErrorFunction · 0.85
SplitFunction · 0.85

Tested by

no test coverage detected