Release 4.01

This commit is contained in:
Paolo Cignoni 2004-09-21 23:52:51 +00:00
parent 51f13ef53c
commit 2d32a0ce46
2 changed files with 15 additions and 10 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $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 Revision 1.8 2004/09/20 15:17:28 cignoni
Removed bug in displays msec and better usage messages 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"\ " -C # # Set the min/max values used for color mapping\n"\
" -L Remove duplicated and unreferenced vertices before processing\n"\ " -L Remove duplicated and unreferenced vertices before processing\n"\
"\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" "a number of samples that is approx. 10x the face number.\n"
); );
exit(-1); 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); printf("target # samples : %u\ntarget # samples/area : %f\n", n_samples_target, n_samples_per_area_unit);
ForwardSampling.Hausdorff(); ForwardSampling.Hausdorff();
dist1_max = ForwardSampling.GetDistMax(); 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(" mean : %f\n", ForwardSampling.GetDistMean());
printf(" RMS : %f\n", ForwardSampling.GetDistRMS()); printf(" RMS : %f\n", ForwardSampling.GetDistRMS());
printf("# vertex samples %9d\n", ForwardSampling.GetNVertexSamples()); 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); printf("target # samples : %u\ntarget # samples/area : %f\n", n_samples_target, n_samples_per_area_unit);
BackwardSampling.Hausdorff(); BackwardSampling.Hausdorff();
dist2_max = BackwardSampling.GetDistMax(); 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("\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(" mean : %f\n", BackwardSampling.GetDistMean());
printf("RMS : %f\n", BackwardSampling.GetDistRMS()); printf(" RMS : %f\n", BackwardSampling.GetDistRMS());
printf("# vertex samples %9d\n", BackwardSampling.GetNVertexSamples()); printf("# vertex samples %9d\n", BackwardSampling.GetNVertexSamples());
printf("# edge samples %9d\n", BackwardSampling.GetNEdgeSamples()); printf("# edge samples %9d\n", BackwardSampling.GetNEdgeSamples());
printf("# area samples %9d\n", BackwardSampling.GetNAreaSamples()); printf("# area samples %9d\n", BackwardSampling.GetNAreaSamples());

View File

@ -2,11 +2,12 @@
VCGLib http://vcg.sf.net o o VCGLib http://vcg.sf.net o o
Visual and Computer Graphics Library o o Visual and Computer Graphics Library o o
_ O _ _ O _
Copyright(C) 2004 \/)\/ Copyright(C) 2004-2005 \/)\/
Visual Computing Lab http://vcg.isti.cnr.it /\/| Visual Computing Lab http://vcg.isti.cnr.it /\/|
ISTI - Italian National Research Council | 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 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. 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 P. Cignoni, C. Rocchini and R. Scopigno
"Metro: measuring error on simplified surfaces" "Metro: measuring error on simplified surfaces"
Computer Graphics Forum, Blackwell Publishers, vol. 17(2), June 1998, pp 167-174 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: For any question about this software please contact:
Paolo Cignoni ( p.cignoni@isti.cnr.it ) 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 -S0 montecarlo sampling
-S1 subdivision sampling -S1 subdivision sampling
-S2 similar triangles sampling (Default) -S2 similar triangles sampling (Default)
-n# set the required number of samples (overrides -A) -n# set the required number of samples (overrides -a)
-a# set the required number of samples per area unit (overrides -N) -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 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) -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 -L Remove duplicated and unreferenced vertices before processing to avoid