Mesh Fixing Tools

7 votes
Date Updated: 

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 ''. 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.


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


Comment viewing options

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

Need a bit more explanation

Not being a programmer I'm not sure what you mean by:

"Unfortunately, the winding number method requires Matlab and some basic setup for extracting and setting paths."

--Does that mean it won't work in Max on a 64 bit machine?
--Or that you have to install Matlab?
--Or that we don't need to worry about it because it works and unless we are doing something with paths we won't need to worry.

I don't know what you are trying to say about it. Can you explain a bit?

The reason I ask is that I can't get the script to work on Windows 7 x64 with Max 2015 Design. If I try to 'Fix' a mesh with 'Meshfix-Attene' I get the error:

--Runtime error: CenterPivot requires a node.

'Winding Numbers' gives me this error:

--Runtime error: FileStream cannot create: C:\Temp\winding_demo_win32\Clip.obj

If I then go to C:\Temp and manually create the folder 'winding_demo_win32' and run it I get this error:

--No ""addModifier"" function for "ERROR"

"Who is staring at the sea is already sailing a little."

sdSDG's picture


All of my textures are lost. How to fix this?

GODLIKE's picture

Thank you for this, dude!

Thank you for this, dude!

op61's picture


Hi, Im new here,and this is amazing. thank you.

ennetws's picture


Thanks for alerting me Nick, you are right. I updated the package that was missing some DLLs and forgot to add the scripts. Now it should be working :)

Sorry about that

Nick's picture


Is it just me being senile, or is there no actual script in the zip?

Martin Breidt's picture


Thanks for sharing, looks really useful, will have to test it on some dense meshes...

lantlant's picture

Thank you. I should be a

Thank you.
I should be a script that will automatically do it for .. and may even be run as a batch.
And my room is cleaning out the script :)

ennetws's picture


Hi lantlant, the mesh you sent was challanging but I was able to fix it:

What I did was first fix the normals of some polygons so they are pointing outside and consistant with others. Then I split the seperate parts of the mesh and fix them with Meshfix. The main challange was the largest part which needed adding more polygons manually. Thanks for this challanging case, it helped me learn a lot :)

lantlant's picture


the mesh:
the error message:

I tested max9 32 and 64 bit and max2011 64 bit.
Meshfix only was (the Winding numbers and Cork library I have not tested it)

It *.off file writes it, but it's like he could not be loaded.

Install: sure just copy the files the script library?

Comment viewing options

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