List: discuss@lists.openscad.org
From: Carsten Arnholm
Re: [OpenSCAD] getting the boundaries of a stl
Sun, Aug 13, 2017 6:13 PM
The result is mostly a truncated shape1 bounding box, as
expected:
shape@ main_shape()
{
return print_box(cube(size:100) - translate(30,0,0)*cube(size:100));
}
boundingbox: x=[0,30] y=[0,100] z=[0,100]
For the real case where the bounding box is over estimated, consider
shape@ main_shape()
{
return print_box(sphere(r:50));
}
boundingbox: x=[-50,50