Modifier Characters
*
- disable
!
- show only
#
- highlight / debug
%
- transparent / background
2D
circle(radius | d=diameter)
square(size,center)
square([width,height],center)
polygon([points])
polygon([points],[paths])
text(t, size, font,
halign, valign, spacing,
direction, language, script)
import("….extformats: DXF|SVG", convexity)
projection(cut)
3D
sphere(radius | d=diameter)
cube(size, center)
cube([width,depth,height], center)
cylinder(h,r|d,center)
cylinder(h,r1|d1,r2|d2,center)
polyhedron(points, faces, convexity)
import("….extformats: STL|OFF|AMF|3MF", convexity)
linear_extrude(height,center,convexity,twist,slices)
rotate_extrude(angle,convexity)
surface(file = "….extformats: DAT|PNG",center,convexity)
Transformations
translate([x,y,z])
rotate([x,y,z])
rotate(a, [x,y,z])
scale([x,y,z])
resize([x,y,z],auto,convexity)
mirror([x,y,z])
multmatrix(m)
color("colorname",alpha)
color("#hexvalue#rgb|#rgba|#rrggbb|#rrggbbaa")
color([r,g,b,a])
offset(r|delta,chamfer)
hull()
minkowski(convexity)