This example generates the detail for the further 3D printing using the voxels. The CSG principles demonstrated. 
    
#include <CoreAPI.h>
 
EXPORT
int main() {
    
    auto current = Scene::sculptRoot().addChild("Detail").density(20);
    
    auto volume = current.
Volume();
 
    
    
    
    
    
    
    
    
    
    
    volume.relaxVoxels(1);
    return 0;
}
The class allows to operate over voxels/surface on the relatively low-level.
Definition CoreAPI.h:1953
 
void toVoxels()
turn to voxels, auto-voxelize
 
The cylinder.
Definition CorePrimAPI.h:876
 
cylinder & diameterTop(const float &d)
set the top diameter.
 
cylinder & height(const float &_height)
set the height in the z-axis.
 
cylinder & diameter(const float &d)
set the diameter.
 
cylinder & diameterBottom(const float &r)
set the bottom diameter.
 
void subtract(Volume &v)
subtract the prim from scene
 
prim & y(float y)
shift the primitive along the y - axis
 
void add(Volume &v)
add the prim into scene
 
The sphere.
Definition CorePrimAPI.h:620
 
sphere & diameter(const float &d)
set the diameter of the sphere.
 
The coat namespace used for most 3DCoat API calls except low-level internal structures.
Definition CoreAPI.h:43