This repository contains the implementation code for our SIGGRAPH Asia paper Medial Skeletal Diagram: A Generalized Medial Axis Approach for 3D Shape Representation.
We introduce the Medial Skeletal Diagram (MSD) -- a representation with a sparse skeleton that generalizes the medial axis. Our representation reduces the number of discrete elements (
-
Download libpgo, a C++ library with Python bindings for Physically-based simulation, Geometric shape modeling, and Optimization. Follow the instructions in the original repo to get
libpgo.git clone [email protected]:bohanwang/libpgo.git
-
Clone this repo into the
{libpgo_ROOT}/projectsfolder.cd libpgo/projects git clone [email protected]:bohanwang/MSD.git
-
Install prerequisites. Please refer to Prerequisites for
libpgo. -
Build the repo.
cd ../ cmake -B build -S . -DPGO_ENABLE_FULL=1 -DPGO_USE_MKL=1 -DPGO_BUILD_SUBPROJECTS=1 cmake --build build --target computeMSD --parallel
-
The built executable will be installed into
build/bin/.
Note that we have only tested it on Windows and Ubuntu 24.04.
We provide a few examples in the examples folder. Please check them out there.
- add support to user-defined medial axis
- release more examples
See the LICENSE file.