OpenSCAD is coding language for creating solid 3D objects.
The objects can be exported as STL file and 3D printed or shared online.
Website: https://www.openscad.org/
Download version: https://www.openscad.org/downloads.html
Online version: http://openscad.net
OpenSCAD Cheatsheet: https://www.openscad.org/cheatsheet/index.html
Make a cube
cube(size, center)
Type:
cube(30, center = true);
Hit: Design -> Reload & Preview (F4)
or
cube([width,depth,height], center)
cube([30, 30, 30], center = false);
Rotate and Translate
translate([x,y,z])
rotate([x,y,z])
rotate(45)
translate([50,0,0])
cube(50, true);
cube(50, true);
Flow Control
for (i = [start:end]) { … }
for ( i = [0:20])
{
rotate(20*i)
translate([24,0,0])
cube( [10, 30, i*1+5], false);
}
Difference
difference()
{
rotate([10,10,10])
cube(50, true);
cube(45, true);
}
Export as STL to 3D print
Hit: Design -> Export as STL/DXF
save STL file and load it into Cura. Then print.
iMaterialise it
Website: https://i.materialise.com
Hit: Get Started
Upload 3D Model.
Choose STL file.
Choose Size and Material
Order.
Share on Thingiverse.com
DIAMETER = 20; //[20:60]
for (i=[0:20])
{
rotate(20*i)
translate([DIAMETER,0,0])
cube( [10, 30, i*1+5], false);
}