OpenSCAD

Introduction



OpenSCAD is software for creating solid 3D CAD objects. It is free software and available for Linux/UNIX, MS Windows and Mac OS X.

OpenSCAD focuses on the CAD aspects of 3D modeling and is good for creating 3D models of machine parts or any part where you want to specify parameters.

OpenSCAD is not an interactive modeller. Instead it reads in statements that describes the object and it renders the 3D model from that code. This gives you full control over the modeling process and enables you to easily change any step in the process or make designs that are defined by configurable parameters.

OpenSCAD provides two main modeling techniques:
  1. Constructive Solid Geometry
  2. Extrusion of 2D outlines


Numbers in OpenSCAD are in millimeters. So circle(5); or circle(r=5); draws a circle with a radius of 5mm.

OpenSCAD Syllabus
External Editors
Helper Files


The User Manual



 
 module head(){
union(){
	difference(){
		union(){
			sphere(r=20);
			for ( i = [1 : 1 : 2] ){
   			 	rotate( i * 360 / 6, [1, 0, 0])
    				translate([-4, 20, 0])
    				sphere(r = 5);
			}
			color([1,1,1])
			for ( i = [1 : 1 : 2] ){
    				rotate( i * 360 / 6, [0, 0, 1])
    				translate([0, 16, 10])
    				sphere(r = 5);
			}
		}
		intersection(){
			translate([-10,0,-2])
			sphere(r=11);
			translate([-10,0,-2])
			sphere(r=10);

		}
	}

}

}
module body(){
translate([20,0,0])
sphere(r=25);
translate([45,-2,0])
sphere(r=10);
translate([30,10,-22])
sphere(r=5);
translate([30,-10,-22])
sphere(r=5);
translate([10,-10,-22])
sphere(r=5);
translate([10,10,-22])
sphere(r=5);
}
head();
body();