Inspired by git 3D diff and sshirokov's csgtools
This command line tool helps you visually identify diff changes in 3D meshes by performing Constructive Solid Geometry operations on STL files using 3D BSP trees. Still under development :P
Just install https://github.com/revarbat/pycsg and it dependencies :) Edit: that repo was removed by the author, though I forked it here (https://github.com/mani-nesan/pycsg)
Run python cli.py
. with arugements and options
usage: 3d-diff [-h] [-v] [-q] {i,s,u} ...
optional arguments:
-h, --help show this help message and exit
-v, --verbose Be verbose
-q, --quiet Hide most output
subcommands:
valid subcommands
{i,s,u} additional help
i intersect of given STL files
s subtract of given STL files
u union of given STL files
For the stl files jaws.stl and jaws2.stl, we can generate result in three files: intersect.stl, subtract.stl, and union.stl representing the CSG operations performed on the arguments.
python cli.py i data/stl/jaws.stl data/stl/jaws2.stl -o data/intersect.stl
python cli.py s data/stl/jaws.stl data/stl/jaws2.stl -o data/subtract.stl
python cli.py u data/stl/jaws.stl data/stl/jaws2.stl -o data/union.stl
Other great watch libraries to try are: