Skip to content

mani-nesan/3D-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D-diff

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

Install the dependencies:

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)

Usage

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

Example

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

intersect

python cli.py s data/stl/jaws.stl data/stl/jaws2.stl -o data/subtract.stl

substract

python cli.py u data/stl/jaws.stl data/stl/jaws2.stl -o data/union.stl

union

Similar Projects

Other great watch libraries to try are:

About

Python based 3D-diff tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages