Full Version: Rectangular coil script

From: bemfarmer [#1]
 31 Oct
To: ALL

_CoilRectangular is a simple script which creates a multi-Turn helix-like, "rounded rectangle" coil curve, based upon a 2D rounded rectangle with continuous z offset. The curve can also be considered to be a spring coil.
The coil turn is made up of line segments and quarter helices.
The number of Turns is an integer. If Turns = zero, one turn is still made, a slight bug.
The user may Sweep the curve with a circle or rectangle, (flat mode suggested,) or other 2D object, placed at the beginning, tangent/perpendicular to the curve.
LineWeb programming style was used, but instead of a factories array, objectlists were used. Interpcurve was not used.

Normally the radius is less than or equal to the lesser of length/2 or width/2, otherwise the result will be non-standard.
"Stadium" curve occurs if 2*radius = length or width.
It is also possible to make a circle, a square, a rectangle, or a helix.

- Brian

Attachments:
_CoilRectangular.zip

Reply


From: TOM (SIRTOM) [#2]
 1 Nov
To: ALL

Love your scripts - great !

Reply


From: danperk (SBEECH) [#3]
 1 Nov
To: ALL

Thanks Brian!

Reply


From: mkdm [#4]
 1 Nov
To: ALL

Hi bemfarmer.

Thank you very much for this interesting script!


It's very useful for creating things like these :







Thanks and have a nice day.


Ciao!

Reply


From: mkdm [#5]
 1 Nov
To: ALL

P.S.

I find that is also useful applying a single pass of Max's "del_corner" script after doing the coil.

In this way it's more easy to add points and deform the curve as needed.

Marco (mkdm)

Reply


Reply to All

Back to thread list | Login

© 2017 Project Beehive Forum