[OpenSCAD] bend a pipe/tube

Chow Loong Jin hyperair at debian.org
Thu Apr 30 01:14:19 EDT 2015


On Wed, Apr 29, 2015 at 07:50:34AM -0700, biskero wrote:
> Ciao,
> 
> 
> here is code I found to create a ellipse tube based on torus, but it's
> pretty slow when I compile it into my design, OpenSCAD starts thinking!!! :)
> Any suggestion how to speed this code?
>
> 			translate([0,0,-r2-1])
> 			linear_extrude(height=2*r2+2)
>         		polygon([
> 		            [0,0],
> 		            [trx * cos(a0), try * sin(a0)],
> 		            [trx * cos(a1), try * sin(a1)],
> 		            [trx * cos(a2), try * sin(a2)],
> 		            [trx * cos(a3), try * sin(a3)],
> 		            [trx * cos(a4), try * sin(a4)],
> 		            [0,0]
> 		       ]);

This bit can be done using pieSlice() from MCAD.

-- 
Kind regards,
Loong Jin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20150430/9243a8a7/attachment.asc>


More information about the Discuss mailing list