Convert Spline / Polyline with bulges

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
tukuyomi
Full Member
Posts: 50
Joined: Mon Aug 09, 2010 6:15 pm

Convert Spline / Polyline with bulges

Post by tukuyomi » Tue Sep 13, 2016 7:40 pm

Hello !

Qcad has tools to explode Splines in straight segments, but not in arcs.

Is anyone familiar with an algorithm to convert spline to Arcs --with a bit of tolerance, of course?

Thanks

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4939
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Convert Spline / Polyline with bulges

Post by Husky » Tue Sep 13, 2016 8:45 pm

Hi,
tukuyomi wrote:Qcad has tools to explode Splines in straight segments, but not in arcs.
Explode a Spline = Polyline,
Explode a Polyline = Lines and Arcs - whenever possible,
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

tukuyomi
Full Member
Posts: 50
Joined: Mon Aug 09, 2010 6:15 pm

Re: Convert Spline / Polyline with bulges

Post by tukuyomi » Wed Sep 14, 2016 9:12 am

Am I missing some settings here ?

Please consider the attached drawing. If I explode the splines here, I only get straight segments.

Even if I select minimal values in App Preferences > Modify > Explode, I still get too much straight segments, meaning too much G01 gcode to write to my old Laser cutting machine.

What I would like is the possibility to explode Splines as Lines and Arcs --as Ellipses do--, with some kind of tolerance.

By the way, the function that draws those Splines is a Sine function.

I'm trying to write with a script based --not on splines this time, but-- on Polylines with bulges values, but those are tricky to find/calculate :p
Attachments
test0.dxf
(101.62 KiB) Downloaded 466 times

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

Re: Convert Spline / Polyline with bulges

Post by andrew » Wed Sep 14, 2016 9:35 am

tukuyomi: Please indicate what version of QCAD you are using, thanks.

tukuyomi
Full Member
Posts: 50
Joined: Mon Aug 09, 2010 6:15 pm

Re: Convert Spline / Polyline with bulges

Post by tukuyomi » Wed Sep 14, 2016 10:15 am

Oops I updated to 3.15.5, and indeed, Splines are exploded to polylines and arcs ! Thanks !

I increased the Spline Tolerance in the Apps Preferences, but I still get too much entities ; weird, using the drawing I posted above, on the bottom spline, there are far more arcs toward the left.

Is it possible to increase the tolerance more ? I tried to put a big value (10 and even 100), but it did not have effect on the exploded spline.

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

Re: Convert Spline / Polyline with bulges

Post by andrew » Wed Sep 14, 2016 11:16 am


Post Reply

Return to “QCAD 'How Do I' Questions”