# rotation around a particular point?

4 messages
Open this post in threaded view
|

## rotation around a particular point?

 I'm not understanding the docs on rotate() and the rotation vector.Could somebody show me how this rotation could be made aroundthe center of the cube?  i.e. so it would generate an 8-point star,where the two cubes would have the same center (x,y) point?cube([10,10,1]);rotate(45) cube([10,10,1]);-- Mark Harrison[hidden email] _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: rotation around a particular point?

 Even though I'm no wizard at OpenSCAD, this one was an easy one, using the for-loop feature:for (spin = [0 : 45 : 360])    rotate(spin)     cube([10,10,1]);On Wednesday, August 16, 2017, 8:20:47 PM EDT, Mark Harrison <[hidden email]> wrote:I'm not understanding the docs on rotate() and the rotation vector.Could somebody show me how this rotation could be made aroundthe center of the cube?  i.e. so it would generate an 8-point star,where the two cubes would have the same center (x,y) point?cube([10,10,1]);rotate(45) cube([10,10,1]);-- Mark Harrison[hidden email] _______________________________________________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