Ellipse Arc Approx by spline flaws

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
CVH
Premier Member
Posts: 3470
Joined: Wed Sep 27, 2017 4:17 pm

Ellipse Arc Approx by spline flaws

Post by CVH » Thu Jan 02, 2020 10:57 am

For Tile2Hatch I reduce all entities to bare line-segment.
In some cases there are more routes to do this.
Including all routes as options....
For ellipses one is the most common form:

Code: Select all

polyline = ellipse.approximateWithArcs(options["ellipseSegments"]); 
The second option is parsing it to the splines section and handle it there with specific options for splines.
Using the inbuild method:

Code: Select all

splines = ellipse.approximateWithSplines();
The first spline in the returned set starts where the Ellipse Arc did.
The last retuned spline always overshoots the end.

What am I doing wrong? :oops:

Can't find any end treatment in 36 hits searching the Qcad project for "approximateWithSplines"

Regards,
CVH
Attachments
EllipseApproxErr.dxf
(113.36 KiB) Downloaded 305 times

User avatar
andrew
Site Admin
Posts: 9060
Joined: Fri Mar 30, 2007 6:07 am

Re: Ellipse Arc Approx by spline flaws

Post by andrew » Wed Jan 08, 2020 4:48 pm

REllipse:: approximateWithSplines is highly experimental and not used at all by QCAD. As approximateWithArcs is far superior, spline approximation might be removed in a future version.

CVH
Premier Member
Posts: 3470
Joined: Wed Sep 27, 2017 4:17 pm

Re: Ellipse Arc Approx by spline flaws

Post by CVH » Wed Jan 08, 2020 5:19 pm

Good thing I came up with an alternative....

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”