[OpenSCAD] Rotating 3d object

Hans L thehans at gmail.com
Sat Nov 23 14:11:19 EST 2019

Yeah Doug makes a good point about using projection, I was kinda thinking
that but was being lazy to figure out how implement it.

But now I've made a generic module + example usage that should work for
pretty much any shape I think:
And my solution to finding the right cut plane is to do all of them!
Note: It sweeps over [-90.+90] degrees, and assumes the object given to it
is oriented such that the longer dimension is pointed towards the positive
X-axis, and that it pivots about the Z axis, centered on the origin,.


On Sat, Nov 23, 2019 at 11:18 AM Doug Moen <doug at moens.org> wrote:

> You might be able to get the effect of sweeping a 3D shape around an axis
> of revolution by using the projection() module to convert the 3D shape to
> 2D, then using rotate_extrude() to perform the 2D profile. Whether you can
> find the right cut plane for the projection, in order to get the effect you
> want, will depend on the details of the 3D shape.
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191123/c4d8a9c2/attachment.html>

More information about the Discuss mailing list