Scroll to navigation

man(7) meshfix man page man(7)

NAME

meshfix - a surface mesh cleaning and repairing utility

SYNOPSIS

meshfix <file1> [<file2>] [OPTIONS]

DESCRIPTION

Meshfix is a surface mesh repairing and cleaning tool. It was written by Marco Attene, Mirko Windhoff, Axel Thielscher. The details regarding this tool can be found in the below paper

M. Attene - A lightweight approach to repairing digitized polygon meshes. The Visual Computer, 2010. (c) Springer.

Meshfix processes file1 and saves the result to <file1>_fixed.off. An optionally passed file2 is merged with the first one.

Accepted input formats are OFF, PLY and STL.

OPTIONS

This program accepts the following input parameters:

Allowed range: 0 < epsilon_angle < 2, default: 0 (degrees)
Join 2 biggest components if they overlap, remove the rest.
Join the closest pair of components.
Print this help and exit.
Only the n biggest shells are kept.
Set the output filename (without extension).
Quiet mode, don't write much to stdout.
Uniform remeshing of the whole mesh, steps > 0
Constrain number of vertices to n (only with -u)
Don't clean.
Apply n laplacian smoothing steps.
Result is saved in STL format instead of OFF.
Result is saved in VRML1.0 format instead of OFF.
Result is saved in FreeSurfer format instead of OFF.
Shift x-coordinates of vertices by d when saving output. Only works with --fsmesh; used to deal with small FreeSurfer glitch
Result is saved in gmsh format for debugging (including vertex and triangle masks)
Remove triangles of 1st that are outside of the 2nd shell.
Remove triangles of 1st that are inside of the 2nd shell. Dilate 2nd by d; Fill holes and keep only 1st afterwards.
Treat 1st file as inner, 2nd file as outer component. Resolve overlaps by moving inners triangles inwards.
Treat 1st file as outer, 2nd file as inner component. Resolve overlaps by moving outers triangles inwards.
Treat 1st file as outer, 2nd file as inner component. Resolve overlaps by moving outers triangles outwards. Constrain the min distance between the components > d.
Used to fine-tune the minimal distance between surfaces A minimal distance d is ensured, and reached in n substeps When using the surfaces for subsequent volume meshing by gmsh this step prevent too flat tetrahedra
Similar to --fineTuneIn, but ensures minimal distance in the other direction --dilate <d> Dilate the surface by d. d < 0 means shrinking. --intersect If the mesh contains intersections, return value = 1. --intersect -o fname.msh If the mesh contains intersections, return value = 1. In addtion, save mesh with highlighted intersections in Gmsh format

SEE ALSO

cgalmesh(7), cgalsurf(7), cgalsimp2(7), cgalpoly(7), cork(7), jmeshlib(7)

AUTHOR

Marco Attene (attene@ge.imati.cnr.it), Mirko Windhoff, Axel Thielscher and Qianqian Fang (fangqq@gmail.com)

30 June 2020 1.2-alpha