home

2D Shapes

Circle

2D Circle

Creates a circle of a specified radius.

						
//!OpenSCAD
//circle
circle(r=10);			
					

Square

2D Square

Creates a square or rectangle of specified dimensions x and y. Primitive may optionally be centered around the origin.

						
//!OpenSCAD
//square
square([10, 10], center=false);