Skip to content

MATTopo: Topology-preserving Medial Axis Transform with Restricted Power Diagram. ACM Transactions on Graphics (SIGGRAPH Asia 2024).

License

Notifications You must be signed in to change notification settings

ningnawang/MATTopo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MATTopo: Topology-preserving Medial Axis Transform with Restricted Power Diagram 🌟 SIGGRAPH Asia 2024

🍍 [MATTopo Project] 🍍 [MATTopo Paper (low res)] 🍍 [MATTopo Code] 🍍 [MATTopo Video (YouTube)] 🍍 [MATTopo Video (Bilibili)]

Please kindly cite our paper as:

@article{wang2024mattopo,
  title    = {MATTopo: Topology-preserving Medial Axis Transform with Restricted Power Diagram},
  author   = {Wang, Ningna and Huang, Hui and Song, Shibo and Wang, Bin and Wang, Wenping and Guo, Xiaohu},
  journal   = {ACM Transactions on Graphics (TOG)},
  year      = {2024},
  address   = {New York, NY, USA},
  publisher = {ACM},
  volume    = {43},
  number    = {4},
  url       = {https://doi.org/10.1145/3687763},
  doi       = {10.1145/3687763},
  booktitle = {ACM SIGGRAPH Asia 2024 Papers},
  series    = {SIGGRAPH Asia '24}
}

Related Project MATFP:

Our previous SIGGRAPH Asia 2022 project Computing Medial Axis Transform with Feature Preservation via Restricted Power Diagram preserves the features of 3D CAD models.

🌵 [MATFP Project] 🌵 [MATFP Paper (low res)] 🌵 [MATFP Video (YouTube)] 🌵 [MATFP Video (Bilibili)]

Dependencies:

  1. Please make sure following libs are up-to-date:
apt install zlib1g-dev
sudo apt install mesa-common-dev
sudo apt-get install libcgal-dev
  1. This project heavily relies on sub-modules in extern/libmat, please make sure LibMAT exists and is runnable. Normally you don't need to do anything with it, linux command $cmake .. will do the work for you (see Section Build).

  2. Please also install following dependencies:

    • CMake
    • CGAL
    • Eigen3
    • CUDA

Build

This project has been tested on two Linux machines. Please build our code using CMake.

  • Machine 1: GPU GeForce RTX 2080Ti
  • Ubuntu 20.04
  • Nvidia driver 525
  • CUDA 11.8
  • GCC 9.4.0
  • CMake 3.16.3
  • Geogram v1.7.5
  • Machine 2: GPU GeForce RTX 4090
  • Ubuntu 20.04
  • Nvidia driver 535
  • CUDA 12.2
  • GCC 9.4.0
  • CMake 3.16.3
  • Geogram v1.7.5

For Linux, use the following steps to build:

mkdir build
cd build
cmake ..
make -j4

Usage

The input of our method is the tetrahedral mesh in .msh format, one can use the ftetwild to generate.

  1. For running NON-CAD model (organic models), please run:
$ ./bin/MATTOPO <tet_mesh.msh> <nb_spheres> non_cad <optional: thinning_threshold, default=0.1, bigger more aggressive thinning>
  1. For running CAD model with sharp edges and corners predetected, please run:
$ ./bin/MATTOPO <tet_mesh.msh> <nb_spheres> cad <optional: thinning_threshold, default=0.1, bigger more aggressive thinning>

Output & Format

For the generated 3D medial mesh, there are three medial elements:

  1. vertices, represents medial spheres.
  2. edges, represents medial cones:
    • edges not shared by any faces (1D curves)
    • edges shared by at least one face
  3. faces, represents medial slabs.

The result will be saved under the out/mat/ folder. It saves the generated medial mesh in both .ma format and .ply format. We provide a GUI in polyscope which shows the generated medial mesh at the end of the program.

To open a saved 3D medial mesh in format *.ma or *.ply, we recommend following option:

  1. The .ma file is the commonly used MAT format:
numVertices numEdges numFaces
v x y z r
e v1 v2
f v1 v2 v3

One can load the *.ma file using Blender with an open-sourced blender-mat-addon.

  1. The header ofr .ply will show the statistics of all vertices, faces and edges. Here edges consists of two parts as described above.
element vertex xxx
...
element face xxx
...
element edge xxx

We recommend using Blender to view the 3D medial meshes' in PLY format, as it shows correct statistics of not only vertices and faces, but also all edges, including 1d curves. If you open the PLY/OBJ file with MeshLab, only vertices and faces shows correctly, however, 1D curves will NOT be shown/counted in MeshLab.

About

MATTopo: Topology-preserving Medial Axis Transform with Restricted Power Diagram. ACM Transactions on Graphics (SIGGRAPH Asia 2024).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published