Vision and Mobile Robotics Laboratory | Software
|
|
Home | Members | Projects | Publications | Software | Videos | Internal |
SmoothMesh is a program for low pass filtering meshes. The smoothing code is based on the "smoothing without shrinking" filter of Gabriel Taubin (ICCV '95).
This directory contains the source files for the SmoothMesh function. All source files are written in c++. See Makefile in this directory for the necessary source files and libraries need to compile this program.
main.c contains the main controling function for SmoothMesh
smooth.c contains the iterative function for smoothing the mesh.
By typing 'SmoothMesh -' the following options (format description default) are printed:
Usage: SmoothMesh (see SmoothMesh.html for complete usage)
%S in mesh filename [required]
%S out mesh filename [required]
-l %F lambda gain [0.330]
-m %F mu gain [-0.331]
-n %d number of iterations [50]
-fix_boundary don't smooth the boundary [off]
%S in mesh filename [required]
Filename of mesh that you would like to smooth.
%S out mesh filename [required]
Filename of mesh to contain the output.
-l %F lambda gain [0.330]
Positive gain for smoothing filter (see Taubin ECCV 96, ICCV 95).
-m %F mu gain [-0.331]
Negative gain for smoothing filter (see Taubin ECCV 96, ICCV 95).
-n %d number of iterations [50]
Number of smoothing iterations. Increase this number for more smoothing.
-fix_boundary don't smooth the boundary [off]
Engage to prevent smoothing from being applied to the boundaries of the mesh. This will prevent some shrinking on the boundaries.
An example of the minimum usage is:
SmoothMesh duck0.wrl duck0.smooth.wrl
A more smoothed result with no smoothing on the boundary could be produced with:
SmoothMesh duck0.wrl duck0.smooth.wrl -n 100 -fix_boundary