On 2017-08-17 02:19, Mark Harrison wrote:
> I'm not understanding the docs on rotate() and the rotation vector.
> Could somebody show me how this rotation could be made around
> the 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?
> rotate(45) cube([10,10,1]);
Rotations are always around the origin of your coordinate system, but
your cubes are not at the origin. The easiest answer in this case is
> But a more general answer that will generate the 8-point star at the center
> of the first cube would be:
> Basically, the idea is to move the second cube center to the origin, rotate
> that cube, then move it back to the original location.