Vision and Mobile Robotics Laboratory | Software
|
|
Home | Members | Projects | Publications | Software | Videos | Internal |
MeshHistogram takes as input a mesh and outputs an histogram of edge lengths in the mesh in XMGR format. This function can be used to see how evenly spaced the vertices are in a surface mesh.
MeshHistogram.c is the controlling function. It reads in the mesh and calls the function to compute the mesh histogram.
By typing 'MeshHistogram -' the following options (format description default) are printed:
Usage: MeshHistogram (see MeshHistogram.html for complete usage)
%S in mesh filename [required]
%S in histogram filename [required]
-bin_size %F set bin size [automatic scaling]
%S in mesh filename [required]
The name of the VRML indexed face set for which the histogram is being computed.
%S in histogram filename [required]
The name of the XMGR format histogram of edge lengths computed for the input mesh.
-bin_size %F set bin size [automatic scaling]
Sets the size of the bins in the mesh. It should be a fraction of the mesh resolution. If this parameter is not set, then the histogram is automatically scaled.
To generate a edge length histogram histo.xmgr for valve.model.wrl enter:
MeshHistogram valve.model.wrl histo.xmgr
The histogram can then be viewed with the plotting program XMGR.