useafterfree / scaffold-map

Source code for SIGGRAPH Asia 2017 technical paper "Simplicial Complex Augmentation Framework for Bijective Maps"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplicial Complex Augmentation Framework for Bijective Maps

Zhongshi Jiang, Scott Schaefer, Daniele Panozzo
ACM Transaction on Graphics (Proceedings of SIGGRAPH Asia 2017)
DOI: 10.1145/3130800.3130895


Bijective maps are commonly used in many computer graphics and scientific computing applications, including texture, displacement, and bump mapping. However, their computation is numerically challenging due to the global nature of the problem, which makes standard smooth optimization techniques prohibitively expensive. We propose to use a scaffold structure to reduce this challenging and global problem to a local injectivity condition. This construction allows us to benefit from the recent advancements in locally injective maps optimization to efficiently compute large scale bijective maps (both in 2D and 3D), sidestepping the need to explicitly detect and avoid collisions. Our algorithm is guaranteed to robustly compute a globally bijective map, both in 2D and 3D. To demonstrate the practical applicability, we use it to compute globally bijective single patch parametrizations, to pack multiple charts into a single UV domain, to remove self-intersections from existing models, and to deform 3D objects while preventing self-intersections. Our approach is simple to implement, efficient (two orders of magnitude faster than competing methods), and robust, as we demonstrate in a stress test on a parametrization dataset with over a hundred meshes.

Source Code

Source code is hosted on this GitHub repository. The program is built and tested on MacOS system with AppleClang.


git clone --recursive

Building Build Status

To build the program, you can make use of CMakeLists.txt in the root folder:

mkdir build
cd build
cmake ../


./build/scaffold-test_bin camel_b.obj


MPL2 licensed (FAQ)


Source code for SIGGRAPH Asia 2017 technical paper "Simplicial Complex Augmentation Framework for Bijective Maps"

License:Mozilla Public License 2.0


Language:C++ 99.2%Language:CMake 0.8%