I think a Spiral creation tool for QCAD would be fantastic, anyone else ?
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!)
Anyone for Spirals ?
Moderator: andrew
Anyone for Spirals ?
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...
- hungerburg
- Premier Member
- Posts: 160
- Joined: Fri May 28, 2010 7:35 pm
Re: Anyone for Spirals ?
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.
Re: Anyone for Spirals ?
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 .
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 .
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...
- hungerburg
- Premier Member
- Posts: 160
- Joined: Fri May 28, 2010 7:35 pm
Re: Anyone for Spirals ?
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
- hungerburg
- Premier Member
- Posts: 160
- Joined: Fri May 28, 2010 7:35 pm
Re: Anyone for Spirals ?
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"
To test, replace the stock "ExMathSpiral.js" in "scripts/Misc/Examples/MathExamples/ExMathSpiral"
- Attachments
-
- Polyline spiral approximation rendering
- polyline-spiral.png (16.4 KiB) Viewed 10759 times
-
- polyline-spiral.dxf
- Polyline spiral approximation rendering
- (23.61 KiB) Downloaded 758 times
-
- ExMathSpiral.js
- Polyline spiral approximation generator
- (2.23 KiB) Downloaded 751 times