Meshugge - Delaunay mesh cutting

Introduction

Meshugge is a 2D mesh cutting simulation that uses edge-flipping and node removal to create cuts without messing up mesh quality. This program was written for prototyping purposes only, so it is relatively slow. The name meshugge continues my tradition of choosing nonsensical names for programs. In the unlikely event that you've downloaded this somewhere: the URL for the tarball is http://www.cs.uu.nl/groups/AA/virtual/surgery/meshugge/meshugge-0.3.tar.gz.

Here is the obligatory screenshot:

     shot.png
     

Requirements

This program requires

It has been tested on RedHat 8.0. It seems that Pygtk2 is also available on Windows32, see the PyGTK FAQ at http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq21.002.htp, but I have never tried this.

Invocation

--help,h
option help
--trajectory=file,-t
"trace"/"trace all" reads trajectory from file
--subdivision
use subdivision.
--delaunay,-d
use Delaunay flipping (default).
--size=n,-s
set mesh size to nxn squares.
--stats=file
triangle stats to FILE.
--debug
write debug progress on stdout.

For help on command line options, try

     	 python2 meshugge.py --help
     

Operation: dragging with button1 moves the scalpel. The scalpel starts in the lower left corner. The scalpel wake, starting from the last scalpel exit, is indicated by dots. The active wake is red.

The "Print mesh" button dumps the mesh as an EPS file.

The "Dump statistics" button writes a file with node, triangle and boundary count. For each triangle, the min-angle, max-angle and min-edge length is written.

The "Write wake" button dumps the complete history of the scalpel movement to disk.

If -trajectory is given, two more buttons appear: "Trace wake", reruns the entire movement, and "Trace step" repeats a single movement step of the scalpel.

The subdivision cutting module was added to generate some statistics for comparisons. It is very susceptible to rounding errors.

License (1)

The formal part of the license is below. Informally: I basically couldn't care less about what you do with this software. However, if you use it in any way to write articles in any form, I would greatly appreciate being cited. Relevant citations are:

@InProceedings{nienhuys03:_inter_delaun,
  author = 	 {Han-Wen Nienhuys and A. Frank van der Stappen},

  title = {A {Delaunay} approach to interactive cutting in triangulated surfaces},
  booktitle =	 {Fifth International Workshop on Algorithmic Foundations of Robotics},
  pages =	 {?},
series ={ Advanced Robotics},

  year =	 2003,
  organization = {Springer Verlag}
}

@PhdThesis{nienhuys03:_cuttin,
  author = 	 {Han-Wen Nienhuys},
  title = 	 {Cutting in deformable objects},
  school = 	 {Utrecht University},
  year = 	 2003
}

License (2)

Copyright (c) 2002 Han-Wen Nienhuys and Utrecht University

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.