# bending a shape that's only slightly complex

16 messages
Open this post in threaded view
|

## bending a shape that's only slightly complex

 Is there a way to make this simple shape bend into a circle? … and keep the render time under an hour… 😊 \$fn=40;radius=.5;offset=radius*2;     for(i=[0:5]){         sign=(i%2==0) ? 1 : -1;                translate([offset*2*i,0,0])        rotate_extrude(angle=sign*180)        translate([offset,0])        circle(r=radius);    }_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: bending a shape that's only slightly complex

Open this post in threaded view
|

## Re: bending a shape that's only slightly complex

 I would generate the path as a list of points and then sweep a circle along the path. It would render almost instantly.On Wed, 9 Dec 2020 at 15:43, fred_dot_u via Discuss <[hidden email]> wrote:Is the circle in the x/y plane or the x/z plane? -- Sent from: http://forum.openscad.org/ _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## FW: bending a shape that's only slightly complex

 Any chance you could provide a simple example?  I’ve never swept anything along a path… From: nop head <[hidden email]> Sent: Wednesday, December 9, 2020 8:47 AMTo: OpenSCAD general discussion <[hidden email]>Subject: Re: [OpenSCAD] bending a shape that's only slightly complex I would generate the path as a list of points and then sweep a circle along the path. It would render almost instantly. On Wed, 9 Dec 2020 at 15:43, fred_dot_u via Discuss <[hidden email]> wrote:Is the circle in the x/y plane or the x/z plane? --Sent from: http://forum.openscad.org/_______________________________________________OpenSCAD mailing list[hidden email]http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: FW: bending a shape that's only slightly complex

Open this post in threaded view
|

## Re: bending a shape that's only slightly complex

 This post was updated on . In reply to this post by khackbarth khackbarth wrote > Is there a way to make this simple shape bend into a circle? … and keep > the render time under an hour… 😊 Since you haven't responded to the question of which plane you want the circle on, and you have not responded to the suggestions,   here's my take on it. \$fn=40; radius=.5; offset=radius*2;   rotate_extrude() {         translate ([10,10,0])                 projection()                         for(i=[0:5]){                                 sign=(i%2==0) ? 1 : -1;                                 translate([offset*2*i,0,0])                                 rotate_extrude(angle=sign*180)                                 translate([offset,0])                                 circle(r=radius);                         }                 }  Untitled.png -- Sent from: http://forum.openscad.org/_______________________________________________ OpenSCAD mailing list Discuss@lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: bending a shape that's only slightly complex

 I received a reply, which apparently didn't make it to the list/forum that the objective is to circle the wagons in the x/y plane. My interpretation in 2D is the image above. If I knew how to make it in 3D, I'd stuff the code in here. If the OP thinks my interpretation is incorrect, I hope it will be corrected. I'm looking forward to the solution. -- Sent from: http://forum.openscad.org/_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: bending a shape that's only slightly complex

Open this post in threaded view
|

## Re: FW: bending a shape that's only slightly complex

Open this post in threaded view
|

## Re: FW: bending a shape that's only slightly complex

 Answered "What is BOSL2?" for myself, disregard that question :D Cheers ----- Make things, travel and tell stories. -- Sent from: http://forum.openscad.org/_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org Make things, travel and tell stories.
Open this post in threaded view
|

## Re: FW: bending a shape that's only slightly complex

 CONTENTS DELETED The author has deleted this message.
Open this post in threaded view
|

## Re: FW: bending a shape that's only slightly complex

Open this post in threaded view
|

## Re: FW: bending a shape that's only slightly complex

Open this post in threaded view
|