add a trimesh.__main__ for debugging from CLI and add it to setuptools project.scripts
trimesh hi.stl to show a preview window.
trimesh hi.stl -e hi.glb to export it
trimesh -i hi.stl to get a standard library code.InteractiveConsole with the loaded scene.
separate out the logic for chaining meshes into trimesh.util.chain to fix #2291
This is identical to list(itertools.chain(*args)) if all args are iterables but allows for single-values and filtering out None values.
release #2296 which fixes #2294
in trimesh.path.polygons.projected switches from shapely.ops.unary_union to the same trimesh.boolean.reduce_cascade with a lambda suggested in #2249. My very quick benchmarks indicated this was also faster in 2D with what appeared to be a 63x speedup.
Add some type hints to trimesh.path.raster.rasterize and trimesh.resolvers
trimesh.__main__
for debugging from CLI and add it to setuptoolsproject.scripts
trimesh hi.stl
to show a preview window.trimesh hi.stl -e hi.glb
to export ittrimesh -i hi.stl
to get a standard librarycode.InteractiveConsole
with the loadedscene
.trimesh.util.chain
to fix #2291list(itertools.chain(*args))
if allargs
are iterables but allows for single-values and filtering out None values.trimesh.path.polygons.projected
switches fromshapely.ops.unary_union
to the sametrimesh.boolean.reduce_cascade
with a lambda suggested in #2249. My very quick benchmarks indicated this was also faster in 2D with what appeared to be a 63x speedup.trimesh.path.raster.rasterize
andtrimesh.resolvers