removed useless include from the tridecimator sample

This commit is contained in:
Paolo Cignoni 2013-07-23 07:37:29 +00:00
parent 5e36e051a4
commit 33bab2157f
1 changed files with 23 additions and 39 deletions

View File

@ -1,26 +1,10 @@
#include <vector>
#include <limits>
#include <stdio.h>
#include <stdlib.h>
// stuff to define the mesh // stuff to define the mesh
#include <vcg/simplex/vertex/base.h>
#include <vcg/simplex/face/base.h>
#include <vcg/simplex/edge/base.h>
#include <vcg/complex/complex.h> #include <vcg/complex/complex.h>
#include <vcg/math/quadric.h>
#include <vcg/complex/algorithms/clean.h>
// io // io
#include <wrap/io_trimesh/import.h> #include <wrap/io_trimesh/import.h>
#include <wrap/io_trimesh/export_ply.h> #include <wrap/io_trimesh/export_ply.h>
// update
#include <vcg/complex/algorithms/update/topology.h>
// local optimization // local optimization
#include <vcg/complex/algorithms/local_optimization.h> #include <vcg/complex/algorithms/local_optimization.h>
#include <vcg/complex/algorithms/local_optimization/tri_edge_collapse_quadric.h> #include <vcg/complex/algorithms/local_optimization/tri_edge_collapse_quadric.h>
@ -84,32 +68,32 @@ class MyTriEdgeCollapse: public vcg::tri::TriEdgeCollapseQuadric< MyMesh, Vertex
void Usage() void Usage()
{ {
printf( printf(
"---------------------------------\n" "---------------------------------\n"
" TriSimp V.1.0 \n" " TriSimp V.1.0 \n"
" http://vcg.isti.cnr.it\n" " http://vcg.isti.cnr.it\n"
" http://vcg.sourceforge.net\n" " http://vcg.sourceforge.net\n"
" release date: "__DATE__"\n" " release date: "__DATE__"\n"
"---------------------------------\n\n" "---------------------------------\n\n"
"TriDecimator 1.0 \n"__DATE__"\n" "TriDecimator 1.0 \n"__DATE__"\n"
"Copyright 2003-2012 Visual Computing Lab I.S.T.I. C.N.R.\n" "Copyright 2003-2012 Visual Computing Lab I.S.T.I. C.N.R.\n"
"\nUsage: "\ "\nUsage: "\
"tridecimator fileIn fileOut face_num [opt]\n"\ "tridecimator fileIn fileOut face_num [opt]\n"\
"Where opt can be:\n"\ "Where opt can be:\n"\
" -e# QuadricError threshold (range [0,inf) default inf)\n" " -e# QuadricError threshold (range [0,inf) default inf)\n"
" -b# Boundary Weight (default .5)\n" " -b# Boundary Weight (default .5)\n"
" -q# Quality threshold (range [0.0, 0.866], default .3 )\n" " -q# Quality threshold (range [0.0, 0.866], default .3 )\n"
" -n# Normal threshold (degree range [0,180] default 90)\n" " -n# Normal threshold (degree range [0,180] default 90)\n"
" -E# Minimal admitted quadric value (default 1e-15, must be >0)\n" " -E# Minimal admitted quadric value (default 1e-15, must be >0)\n"
" -Q[y|n] Use or not Quality Threshold (default yes)\n" " -Q[y|n] Use or not Quality Threshold (default yes)\n"
" -N[y|n] Use or not Normal Threshold (default no)\n" " -N[y|n] Use or not Normal Threshold (default no)\n"
" -A[y|n] Use or not Area Weighted Quadrics (default yes)\n" " -A[y|n] Use or not Area Weighted Quadrics (default yes)\n"
" -O[y|n] Use or not vertex optimal placement (default yes)\n" " -O[y|n] Use or not vertex optimal placement (default yes)\n"
" -S[y|n] Use or not Scale Independent quadric measure(default yes) \n" " -S[y|n] Use or not Scale Independent quadric measure(default yes) \n"
" -B[y|n] Preserve or not mesh boundary (default no)\n" " -B[y|n] Preserve or not mesh boundary (default no)\n"
" -T[y|n] Preserve or not Topology (default no)\n" " -T[y|n] Preserve or not Topology (default no)\n"
" -H[y|n] Use or not Safe Heap Update (default no)\n" " -H[y|n] Use or not Safe Heap Update (default no)\n"
" -P Before simplification, remove duplicate & unreferenced vertices\n" " -P Before simplification, remove duplicate & unreferenced vertices\n"
); );
exit(-1); exit(-1);
} }
@ -198,6 +182,6 @@ if(argc<4) Usage();
printf("\nCompleted in (%i+%i) msec\n",t2-t1,t3-t2); printf("\nCompleted in (%i+%i) msec\n",t2-t1,t3-t2);
vcg::tri::io::ExporterPLY<MyMesh>::Save(mesh,argv[2]); vcg::tri::io::ExporterPLY<MyMesh>::Save(mesh,argv[2]);
return 0; return 0;
} }