Skip to content

riceroll/unfolding-mesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meshed_unfolder

This code is modified from Optimized Topological Surgery for Unfolding 3D Meshes

Requirement

  • OpenGL&GLUT (Mesa)
  • CGAL
  • Boost Graph library (BGL)
  • GNU Scientific Library (GSL)

Compilation

On linux

make linux

On Mac

make mac

Quick Start

To unfold the "bunny-128.off" model.

I. Start the program:

./unfold bunny-128.off

Press the left button for menu. In the "Mesh" window, you can change the viewpoint and distance by dragging the right button and the middle button (vertically), respectively.

II. Select the menu

[Split]->[Spanning Trees] (or press 's')

for decomposing the mesh into a set of patches with a small number of faces.

III. Select the menu

[Stitch]->[GA-based stitch] (or press 'o')

for composing a single unfolded patch (or a few unfolded patches).

IV. If you still have a few unfolded patches, select the menu

[Stitch]->[Greedy Remerge]

several times until you can merge them into one single patch.

Reference

Shigeo Takahashi Hsiang-Yun Wu, Seow Hui Saw, Chun-Cheng Lin, and Hsu-Chun Yen: "Optimized Topological Surgery for Unfolding 3D Meshes," Computer Graphics Forum (Proceedings of Pacific Graphics 2011), Vol. 30, No. 7, pp. 2077-2086, 2011.

About

Unfolding 3D meshes into 2D papercraft models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages