Mesh Fixing Tools

7 votes
Version: 
1.3
Date Updated: 
11/13/2013

This script include state of the art methods that can help fix bad or broken meshes:

  • [ code | paper ] Marco Attene: A lightweight approach to repairing digitized polygon meshes. The Visual Computer 26(11): 1393-1406 (2010).
  • [ code | paper ] Alec Jacobson, Ladislav Kavan, Olga Sorkine-Hornung: Robust inside-outside segmentation using generalized winding numbers. SIGGRAPH (2013).
  • [ code | paper ] Bernstein G., Fussell D.: Fast, Exact, Linear Booleans. Computer Graphics Forum 28, 5 (2009), 1269–1278.

In order to load in 3ds max, go to "Utility" (the hammer icon) --> MAXScript --> Open Script --> then load the 'MeshFixUtility.ms'. You can now drop down to the 'Meshfix Utility' and see buttons for the tools. Select an object then click the one you want.

The three tools are Meshfix, Winding numbers, and Cork library. Meshfix is a fast and general tool that fix a number of problems in meshes such as duplicated verts or faces, the newer winding number approch is better at dealing with many dissconnected parts. The cork library is added to help merge highly complex shapes.

All executables are compiled for Windows 32 bit, and have been tested on 3ds max 2014 x64 on Windows 8. Unfortunately, the winding number method requires Matlab 2012 32-bit and some basic setup for extracting and setting some paths.

Demo

Other Software Required: 
3ds Max
Video URL: 
AttachmentSize
meshfix_scripts.zip2.34 MB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ennetws's picture

RE: Runtime error: CenterPivot

Hi lantlant, can you send me the mesh you are fixing and I'll try to figure out what went wrong.

Keep in mind that these tools don't always work as expected. Sometimes, in really bad meshes, I have to use tools like ProBoolean and some manual effort before I fix the mesh.

lantlant's picture

Runtime error: CenterPivot

Runtime error: CenterPivot requires a node... :/

Serg's picture

What libraries from Matlab

What libraries from Matlab are needed ? or need Installed full aplication ? or This original advertisement Matlab ?

ennetws's picture

MathWorks, MATLAB

Unfortunelty MATLAB is a large proprietary software, you could take a look at getting a trial version https://www.mathworks.com/products/matlab/trial.html.

This is only required for the Winding Number method. The other two are standalone.

vitalquaD's picture

Where can I download matlab

Where can I download matlab and how to get it to work?

ennetws's picture

Welcome

I hope it worked for you.

kurt's picture

Thank you

a nice tool

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.