├── .gitignore ├── .gitmodules ├── CMakeLists.txt ├── LICENSE.md ├── README.md ├── data ├── chair0.obj ├── chair1.obj ├── sofa0.obj └── sofa1.obj ├── example.sh ├── pics ├── chair0_mc.png ├── chair0a.png ├── chair0b.png ├── chair1_mc.png ├── chair1a.png ├── chair1b.png ├── sofa0_mc.png ├── sofa0a.png ├── sofa0b.png ├── sofa1_mc.png ├── sofa1a.png ├── sofa1b.png └── watershed.png ├── python_scripts ├── Vox.py ├── __pycache__ │ └── Vox.cpython-37.pyc ├── marching_cubes.py └── requirements.py └── src ├── base ├── Colormap.h ├── LoaderMesh.h ├── SVox.h ├── Triangle.h ├── Vox.h ├── args.hxx ├── cxxopts.hpp ├── tiny_obj_loader.h ├── tinyply.cpp └── tinyply.h ├── main.cpp ├── mesh2df.cu ├── mesh2df.cuh ├── sdf.cu ├── sdf.cuh ├── util.h ├── vec.h ├── voxelize_project.cpp ├── voxelize_project.h ├── watershed.cu └── watershed.cuh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/.gitmodules -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/README.md -------------------------------------------------------------------------------- /data/chair0.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/data/chair0.obj -------------------------------------------------------------------------------- /data/chair1.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/data/chair1.obj -------------------------------------------------------------------------------- /data/sofa0.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/data/sofa0.obj -------------------------------------------------------------------------------- /data/sofa1.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/data/sofa1.obj -------------------------------------------------------------------------------- /example.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/example.sh -------------------------------------------------------------------------------- /pics/chair0_mc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/chair0_mc.png -------------------------------------------------------------------------------- /pics/chair0a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/chair0a.png -------------------------------------------------------------------------------- /pics/chair0b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/chair0b.png -------------------------------------------------------------------------------- /pics/chair1_mc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/chair1_mc.png -------------------------------------------------------------------------------- /pics/chair1a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/chair1a.png -------------------------------------------------------------------------------- /pics/chair1b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/chair1b.png -------------------------------------------------------------------------------- /pics/sofa0_mc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/sofa0_mc.png -------------------------------------------------------------------------------- /pics/sofa0a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/sofa0a.png -------------------------------------------------------------------------------- /pics/sofa0b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/sofa0b.png -------------------------------------------------------------------------------- /pics/sofa1_mc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/sofa1_mc.png -------------------------------------------------------------------------------- /pics/sofa1a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/sofa1a.png -------------------------------------------------------------------------------- /pics/sofa1b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/sofa1b.png -------------------------------------------------------------------------------- /pics/watershed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/pics/watershed.png -------------------------------------------------------------------------------- /python_scripts/Vox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/python_scripts/Vox.py -------------------------------------------------------------------------------- /python_scripts/__pycache__/Vox.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/python_scripts/__pycache__/Vox.cpython-37.pyc -------------------------------------------------------------------------------- /python_scripts/marching_cubes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/python_scripts/marching_cubes.py -------------------------------------------------------------------------------- /python_scripts/requirements.py: -------------------------------------------------------------------------------- 1 | numpy 2 | scikit-image 3 | plyfile 4 | -------------------------------------------------------------------------------- /src/base/Colormap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/Colormap.h -------------------------------------------------------------------------------- /src/base/LoaderMesh.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/LoaderMesh.h -------------------------------------------------------------------------------- /src/base/SVox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/SVox.h -------------------------------------------------------------------------------- /src/base/Triangle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/Triangle.h -------------------------------------------------------------------------------- /src/base/Vox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/Vox.h -------------------------------------------------------------------------------- /src/base/args.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/args.hxx -------------------------------------------------------------------------------- /src/base/cxxopts.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/cxxopts.hpp -------------------------------------------------------------------------------- /src/base/tiny_obj_loader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/tiny_obj_loader.h -------------------------------------------------------------------------------- /src/base/tinyply.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/tinyply.cpp -------------------------------------------------------------------------------- /src/base/tinyply.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/base/tinyply.h -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/main.cpp -------------------------------------------------------------------------------- /src/mesh2df.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/mesh2df.cu -------------------------------------------------------------------------------- /src/mesh2df.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/mesh2df.cuh -------------------------------------------------------------------------------- /src/sdf.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/sdf.cu -------------------------------------------------------------------------------- /src/sdf.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/sdf.cuh -------------------------------------------------------------------------------- /src/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/util.h -------------------------------------------------------------------------------- /src/vec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/vec.h -------------------------------------------------------------------------------- /src/voxelize_project.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/voxelize_project.cpp -------------------------------------------------------------------------------- /src/voxelize_project.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/voxelize_project.h -------------------------------------------------------------------------------- /src/watershed.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/watershed.cu -------------------------------------------------------------------------------- /src/watershed.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skanti/generate-watertight-meshes-and-sdf-grids/HEAD/src/watershed.cuh --------------------------------------------------------------------------------