Open renato-grottesi opened 2 years ago
This is looking good. DXFModule::define
should also have this code:
exports.insert("SPLINE_CLOSED", 1 << 0);
exports.insert("SPLINE_PERIODIC", 1 << 1);
exports.insert("SPLINE_RATIONAL", 1 << 2);
exports.insert("SPLINE_PLANAR", 1 << 3);
exports.insert("SPLINE_LINEAR", 1 << 4);
The change allows correct rendering of quadratic and cubic splines with more than 4 control points by splitting the spline into segments and evaluating each segment as a quadratic or cubic spline, one at a time.