Anyone for Spirals ?

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Anyone for Spirals ?

Post by Clive » Fri Jan 16, 2015 12:00 pm

I think a Spiral creation tool for QCAD would be fantastic, anyone else ?
Spiral Types.png
Spiral Types.png (5.17 KiB) Viewed 10608 times
If you would like this too, please vote for it here :

http://www.ribbonsoft.com/bugtracker/in ... sk_id=1165

*Please note to vote/add for a feature request or to report a bug you will need to create a login for the 'Bugtracker' (also used for adding feature requests!)
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...

User avatar
hungerburg
Premier Member
Posts: 160
Joined: Fri May 28, 2010 7:35 pm

Re: Anyone for Spirals ?

Post by hungerburg » Sun Jan 18, 2015 1:33 am

There is a Spiral in expample scripts Math, I was not satisfied with that one: it creates lots and lots of straight lines. Unfortunately I lost the (probably javascript to render as svg) the script that got me this one below: actually very much like a coiled up hose or such.
Spirale.png
fixed distance spiral from splines
Spirale.png (6.54 KiB) Viewed 10909 times

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: Anyone for Spirals ?

Post by Clive » Mon Jan 19, 2015 10:54 am

Hi hungerburg, thanks for the reply.

Yes I agree the Spiral produced with this script is not ideal, but If this script is already there one would presume that it should be possible to develop an improved Spiral tool from this :wink: .
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...

User avatar
hungerburg
Premier Member
Posts: 160
Joined: Fri May 28, 2010 7:35 pm

Re: Anyone for Spirals ?

Post by hungerburg » Mon Feb 02, 2015 1:18 pm

Actually, the equi-distant spiral above is the one from inkscape; the source thereof has so much boileplate though, it is unreadable; possibly the uniconvertor spiral is easier - http://sourcecodebrowser.com/python-uni ... ource.html - it also creates beziers, but I cannot tell how it looks as I dont know how to run the code yet ;)

User avatar
hungerburg
Premier Member
Posts: 160
Joined: Fri May 28, 2010 7:35 pm

Re: Anyone for Spirals ?

Post by hungerburg » Sat Feb 21, 2015 3:50 pm

Out of curiosity I could not let this rest. So here comes a take at a spiral with less entities. Its created as a polyline, and as such it can always turn out an approximation only. You can see after exploding into arcs, that end angles and start angles of consecutive arcs do not match. The first arc is a fake too ;)

To test, replace the stock "ExMathSpiral.js" in "scripts/Misc/Examples/MathExamples/ExMathSpiral"
Attachments
polyline-spiral.png
Polyline spiral approximation rendering
polyline-spiral.png (16.4 KiB) Viewed 10694 times
polyline-spiral.dxf
Polyline spiral approximation rendering
(23.61 KiB) Downloaded 750 times
ExMathSpiral.js
Polyline spiral approximation generator
(2.23 KiB) Downloaded 744 times

Post Reply

Return to “QCAD Suggestions and Feedback”