Vision and Mobile Robotics Laboratory | Software
|
|
Home | Members | Projects | Publications | Software | Videos | Internal |
MeshStats is a program that prints various statistics about a surface mesh like resolution, bounding box and numbers of elements.
MeshStats.c is the controlling function. It reads in the mesh and calls the function to compute the mesh statistics.
By typing 'MeshStats -' the following options (format description default) are printed:
Usage: MeshStats (see MeshStats.html for complete usage)
%S in mesh filename [required]
%S in mesh filename [required]
The name of the VRML indexed face set filename that you would like to analyze.
To print the statistics of a mesh valve.model.wrl enter:
MeshStats valve.model.wrl
Something like the following will be printed
MESH STATISTICS Number of meshpoints: 2433 Number of meshedges: 7329 Number of meshfaces: 4886 Mesh Resolution: 0.0268777 Average meshedge length: 0.0265886 StDev meshedge length: 0.00686257 Spread of length: 25.8102% Max meshedge length: 0.0740893 Min meshedge length: 0.00825793 Bounding Box Minimum: -0.4925 -0.8375 -0.175 Bounding Box Maximum: 0.1775 0.035 0.174998
Mesh resolution is the median edge length of all edges in the mesh. The bounding box is aligned with the XYZ axes of world coordinates. When the spread of length is small (25%) then the surface described is more or less uniformly sampled by the mesh. The rest of the mesh statistics are self explanatory.