Login  Register

It's possible to support conic sections using our quadratic bezier

Posted by dxli on Feb 03, 2024; 10:39pm
URL: https://forum.librecad.org/It-s-possible-to-support-conic-sections-using-our-quadratic-bezier-tp5724228.html

Hi,

It has been long since we were asked to support all conic sections, i.e. hyperbolas and parabolas, in addition to our current support for ellipses.

Lots of work needed to get all conic sections supported at the same level of ellipses, and that's the reason support is not in yet.

I'm thinking about a faster way, for any interested developers:

1. Our LC_SplinePoints are parabolas, given 3 control points; The easiest is to provide a new derived type here to support parabolas;
2. minor tweaks of LC_SplinePoints can give us hyperbolas (and ellipses), but it would be harder.

Feel free to discuss this further.

dxli