From 2d32a0ce469c92d02db19c81b30b9eca7bfa9b43 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 21 Sep 2004 23:52:51 +0000 Subject: [PATCH] Release 4.01 --- apps/metro/metro.cpp | 13 ++++++++----- apps/metro/readme.txt | 12 +++++++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/apps/metro/metro.cpp b/apps/metro/metro.cpp index 6e3845a4..c143a4b8 100644 --- a/apps/metro/metro.cpp +++ b/apps/metro/metro.cpp @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.9 2004/09/20 16:29:08 ponchio +Minimal changes. + Revision 1.8 2004/09/20 15:17:28 cignoni Removed bug in displays msec and better usage messages @@ -90,7 +93,7 @@ void Usage() " -C # # Set the min/max values used for color mapping\n"\ " -L Remove duplicated and unreferenced vertices before processing\n"\ "\n" - "Default options are to sample vertexes, edge and faces taking \n" + "Default options are to sample vertexes, edge and faces by taking \n" "a number of samples that is approx. 10x the face number.\n" ); exit(-1); @@ -264,7 +267,7 @@ int main(int argc, char**argv) printf("target # samples : %u\ntarget # samples/area : %f\n", n_samples_target, n_samples_per_area_unit); ForwardSampling.Hausdorff(); dist1_max = ForwardSampling.GetDistMax(); - printf("\ndistance:\n max : %f (%f with respect to bounding box diagonal)\n", (float)dist1_max, (float)dist1_max/bbox.Diag()); + printf("\ndistances:\n max : %f (%f with respect to bounding box diagonal)\n", (float)dist1_max, (float)dist1_max/bbox.Diag()); printf(" mean : %f\n", ForwardSampling.GetDistMean()); printf(" RMS : %f\n", ForwardSampling.GetDistRMS()); printf("# vertex samples %9d\n", ForwardSampling.GetNVertexSamples()); @@ -289,9 +292,9 @@ int main(int argc, char**argv) printf("target # samples : %u\ntarget # samples/area : %f\n", n_samples_target, n_samples_per_area_unit); BackwardSampling.Hausdorff(); dist2_max = BackwardSampling.GetDistMax(); - printf("\ndistance:\n max : %f (%f with respect to bounding box diagonal)\n", (float)dist1_max, (float)dist1_max/bbox.Diag()); - printf("mean : %f\n", BackwardSampling.GetDistMean()); - printf("RMS : %f\n", BackwardSampling.GetDistRMS()); + printf("\ndistances:\n max : %f (%f with respect to bounding box diagonal)\n", (float)dist1_max, (float)dist1_max/bbox.Diag()); + printf(" mean : %f\n", BackwardSampling.GetDistMean()); + printf(" RMS : %f\n", BackwardSampling.GetDistRMS()); printf("# vertex samples %9d\n", BackwardSampling.GetNVertexSamples()); printf("# edge samples %9d\n", BackwardSampling.GetNEdgeSamples()); printf("# area samples %9d\n", BackwardSampling.GetNAreaSamples()); diff --git a/apps/metro/readme.txt b/apps/metro/readme.txt index 74374e33..26fc8c82 100644 --- a/apps/metro/readme.txt +++ b/apps/metro/readme.txt @@ -2,11 +2,12 @@ VCGLib http://vcg.sf.net o o Visual and Computer Graphics Library o o _ O _ - Copyright(C) 2004 \/)\/ + Copyright(C) 2004-2005 \/)\/ Visual Computing Lab http://vcg.isti.cnr.it /\/| ISTI - Italian National Research Council | \ - Metro, All rights reserved. + Metro 4.01 21/09/2004 + All rights reserved. @@ -25,12 +26,13 @@ for more details. Metro is a tool designed to evaluate the difference between two triangular meshes. Metro adopts an approximated approach based on surface sampling and point-to-surface distance computation. -Please, when using this tool cite the following reference: +Please, when using this tool, cite the following reference: P. Cignoni, C. Rocchini and R. Scopigno "Metro: measuring error on simplified surfaces" Computer Graphics Forum, Blackwell Publishers, vol. 17(2), June 1998, pp 167-174 +You can find some sample mesh to test in the 'Metro Sample dataset' package downloadable from sourceforge. For any question about this software please contact: Paolo Cignoni ( p.cignoni@isti.cnr.it ) @@ -68,8 +70,8 @@ where "file1" and "file2" are the input meshes in PLY or STL format, and opts ca -S0 montecarlo sampling -S1 subdivision sampling -S2 similar triangles sampling (Default) - -n# set the required number of samples (overrides -A) - -a# set the required number of samples per area unit (overrides -N) + -n# set the required number of samples (overrides -a) + -a# set the required number of samples per area unit (overrides -n) -c save computed error as vertex colour and quality in two ply files -C # # Set the min/max values used for color mapping (useful for taking snapshot with coherent color ramp) -L Remove duplicated and unreferenced vertices before processing to avoid