- Joined
- Apr 19, 2007
- Messages
- 8,706
- Reaction score
- 7,170
- Points
- 393
- Location
- USA
- Printer Model
- Canon MB5120, Pencil
Hours of something are ahead, well, at least making a cube of side 20mm with a hole in the middle.Hours of fun and frustration lie ahead!
cube(20);
will produce a cube of side 20mm. You can then 'subtract' a cylinder of diameter 5mm to make a 5mm hole down the middle using the difference() function:
difference(){
cube(20, center=true); // "center = true" keeps the parts aligned to the center of the grid
cylinder(d=5, h=30, center=true); // d is the diameter and h is the height
}