Additional hints are: * your object for the rotation cannot be a 3D object * there must not be anything left from your rotation axis z (for rotation symmetrical objects like a bullet start with a halved 2D section)
Essentially the module has to produce a 2d shape. So the functions that are used in the module have to lead to a 2d shape being produced. for example: //======================== module moved_diamond(x){ translate([x, 0]) scale([1, 2]) rotate([0, 0, 45]) square(size=1, center=true); } rotate_extrude($fn=100) moved_diamond(10); //======================= The "moved_diamond" module produces a 2d shape and the rotate_extrude function can be used on it. this would not work if a 3d shape was produced instead.
Thanks this helped a lot!
Very interesting. Thanks a lot
Additional hints are:
* your object for the rotation cannot be a 3D object
* there must not be anything left from your rotation axis z (for rotation symmetrical objects like a bullet start with a halved 2D section)
How can I rotate extrude a module?
Essentially the module has to produce a 2d shape. So the functions that are used in the module have to lead to a 2d shape being produced. for example:
//========================
module moved_diamond(x){
translate([x, 0])
scale([1, 2])
rotate([0, 0, 45])
square(size=1, center=true);
}
rotate_extrude($fn=100)
moved_diamond(10);
//=======================
The "moved_diamond" module produces a 2d shape and the rotate_extrude function can be used on it. this would not work if a 3d shape was produced instead.
W thx