VCG Library

Metro is a tool designed to evaluate the difference between two triangular meshes. Metro adopts an approximated approach based on surface sampling and pointtosurface distance computation. The tool has been widely used in the surface simplification research community (more than 800 citations according to google scholar ). Three different surface sampling methods are implemented:
For efficiently finding the closest point over a mesh from a sample point three different spatial indexing structures sampling methods were implemented:
In most cases, given the sampling pattern of Metro, that makes a very large number of spatially coherent queries very near to the indexed surface, Uniform Grids are faster than hierarchies. Hierarchical structures perform better when the query points are far from the indexed surface; in this case UG would require a larger traversal overhead (many cells would be traversed to find a nonempty cell). The tool support the following file formats: off, ply and stl.
P. Cignoni, C. Rocchini and R. Scopigno
Metro: measuring error on simplified surfaces
Computer Graphics Forum, Blackwell Publishers, vol. 17(2), June 1998, pp 167174
PDF
Abstract
This paper presents a new tool, Metro, designed to compensate for a deficiency in many simplification methods proposed in literature. Metro allows to compare the difference between a pair of surfaces (e.g. a triangulated mesh and its simplified representation) by adopting a surface sampling approach. It has been designed as a highly general tool, and it does no assumption on the particular approach used to build the simplified representation. It returns both numerical results (meshes areas and volumes, maximum and mean error, etc.) and visual results, by coloring the input surface according to the approximation error.