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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

dxli
This post was updated on .
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
Reply | Threaded
Open this post in threaded view
|

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

dxli
This post was updated on .
As a proof-of-concept:

drawing parabolas by lc_splinePoints.

created a method to draw a parabola by 4 points on curve.

in general there are two solutions.

Reply | Threaded
Open this post in threaded view
|

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

dxli
A Pull Request has been created for Parabola support:

https://github.com/LibreCAD/LibreCAD/pull/1740