2 ms·
>> One might want something better than a fixed subdivision of the Bezier curves. In Solvespace we convert them to piecewise linear (PWL) approximations using
by phkahler 4y ago
>> One might want something better than a fixed subdivision of the Bezier curves.
In Solvespace we convert them to piecewise linear (PWL) approximations using a chord tolerance setting. If a straight segment deviates from the actual curve by more than the tolerance it is recursively subdivided. C++ code under GPLv3+ for that is available in my favorite file:
https://github.com/solvespace/solvespace/blob/f7415048a5769c78fc4bb02afa426d101059374d/src/srf/ratpoly.cpp#L209 https://github.com/solvespace/solvespace/blob/f7415048a5769c...