Basic workflow
from geomdb import *
from geomdb.loc import Everywhere, BoundingBox, plot
from geomdb.prop import Constant
from geomdb.db import DataBase
# For visualization
from geomdb.utils import scene_to_notebook
# We can use GPU... but as the default jax is cpu-only, let's disable the "GPU not found" warning for now.
import jax; jax.config.update('jax_platform_name', 'cpu')
Read geometry and create voxelation
voxel = voxel_from_stl("data/stanford-bunny.stl", 2)
lower_left_corner, upper_right_corner = voxel.bounds
Select parts of the voxelation using bounding boxes
bb = BoundingBox(lower_left=lower_left_corner, upper_right=[31, 3, 49])
scene_to_notebook(plot(bb, voxel))