======================
sphere(3);
sphere(r=5);
r
radius of the spherecube(size = [2,3,4], center = true, r = 0.5);
cube(4);
r = 0.0
radius of roundingx
x or x-intervaly
y or y-intervalz
z or z-intervalcenter = False
should center? (non-intervals)size
cube sizecenter = False
should center?square(x=[-2,2], y=[-1,5]);
square(size = [3,4], center = true, r = 0.5);
square(4);
r = 0.0
radius of roundingx
x or x-intervaly
y or y-intervalcenter = False
should center? (non-intervals)size
square sizecenter = False
should center?cylinder(r=10, h=30, center=true);
cylinder(r1=4, r2=6, h=10);
cylinder(r=5, h=10, $fn = 6);
r = 1.0
radius of cylinderh = 1.0
height of cylinderr1 = 1.0
bottom radius; overrides rr2 = 1.0
top radius; overrides r$fn = -1.0
number of sides, for making prismscenter = False
center cylinder with respect to z?circle(r=10); // circle
circle(r=5, $fn=6); //hexagon
r
radius of the circle$fn = -1.0
if defined, makes a regular polygon with n sides instead of a circlepolygon ([(0,0), (0,10), (10,0)]);
points
vertices of the polygonpaths = []
order to go through vertices; ignored for nowr = 0.0
rounding of the polygon corners; ignored for nowr = 0.0
Radius of rounding for the union interfacer = 0.0
Radius of rounding for the difference interfacer = 0.0
Radius of rounding for the intersection interfacetranslate ([2,3]) circle (4);
translate ([5,6,7]) sphere(5);
x
x amount to translatey
y amount to translatez = 0.0
z amount to translatev
vector to translate byscale(2) square(5);
scale([2,3]) square(5);
scale([2,3,4]) cube(5);
v
vector or scalar to scale bya
value to rotate by; angle or list of anglesv = [0.0,0.0,1.0]
Vector to rotate around if a is a single anglelinear_extrude(10) square(5);
height = 1.0
height to extrude to...center = False
center? (the z component)twist = Undefined
twist as we extrude, either a total amount to twist or a function...scale = Undefined
scale according to this funciton as we extrude...translate = Undefined
translate according to this funciton as we extrude...r = 0.0
round the top?pack ([45,45], sep=2) { circle(10); circle(10); circle(10); circle(10); }
size
size of 2D box to pack objects withinsep
mandetory space between objectsw
width of the shell...rotate_extrude() translate(20) circle(10);
a = 360.0
angle to sweepr = 0.0
translate = [0.0,0.0]
rotate = 0.0
unit("inch") {..}
unit
the unit you wish to work in