Transforms
Translate
Translates, or moves, one or more objects in specified dimensions x, y, and z.
//!OpenSCAD
translate([0, 0, 0]){
object(attributes);
}
Rotate
Rotates one or more objects around the specified axes x, y, and z. Values are entered in degrees.
//!OpenSCAD
rotate([0, 0, 0]){
object(attributes);
}
Mirror
Mirrors one or more objects across a specified plane.
//!OpenSCAD
mirror([0, 0, 0]){
object(attributes);
}
Scale
Scales one or more objects by a specified amount in dimensions x, y, and z.
//!OpenSCAD
scale([0, 0, 0]){
object(attributes);
}
Color
Applies the specified color to the object, which must be 3D. There are two color blocks. One allows the use of a color picker and the other allows specific color values to be entered as either HSV or RGB numeric values. Each value should be between 0 and 100.
//!OpenSCAD
//color picker
color([1,0.8,0]) {
object(attributes);
}
//color - numeric HSV values
color(hsv(.01 * (0), .01 * (100), .01 * (100))){
object(attributes);
}
Sides
Sets the number of sides for one or more objects using approximated arcs (sphere cylinder, circle, torus).
//!OpenSCAD
{
$fn=8; //set sides to 8
}
Linear Extrude
Extrudes one or more 2-dimensional objects by a specified height with a specified twist. The resulting extrusion may optionally be centered around the origin.
//!OpenSCAD
linear_extrude( height=10, twist=0, scale=[1, 1], center=false){
2D_object(attributes);
}
Rotate Extrude
Rotate extrudes one or more 2-dimensional objects around the z axis with a specified number of sides.
//!OpenSCAD
rotate_extrude($fn=5){
2D_object(attributes);
}