User Tools


This is an old revision of the document!


Difference

Several shapes can be removed (subtracted) from another. The result is the logical difference of shapes.

Note: The first shape given is the base shape for all subtractions.

difference(sphere({r: 1, center:true}),cube({size: 1.5, center:true}));    // openscad like

The CSG library functions can also be used. NOTE: Deprecated in the V2 API

sphere({r: 1, center:true}).subtract(cube({size: 1.5, center:true}));      // using CSG objects' built in methods