From 02a506b847ba6bf469b08ef97b5036f7dc25a912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Cazals?= Date: Wed, 1 Mar 2006 09:16:59 +0000 Subject: [PATCH] --- Jet_fitting_3/examples/Jet_fitting_3/blind.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jet_fitting_3/examples/Jet_fitting_3/blind.C b/Jet_fitting_3/examples/Jet_fitting_3/blind.C index 54de5a5b6c9..e658b96d59b 100644 --- a/Jet_fitting_3/examples/Jet_fitting_3/blind.C +++ b/Jet_fitting_3/examples/Jet_fitting_3/blind.C @@ -175,11 +175,12 @@ int main(int argc, char *argv[]) char* verbose_fname; std::ofstream *out_4ogl = NULL, *out_verbose = NULL; + //parse command lie options + //-------------------------- int optchar; char *optarg; Options opts(*argv, optv); OptArgvIter iter(--argc, ++argv); - while ((optchar = opts(iter, (const char *&) optarg))){ switch (optchar){ case 'f': if_name = optarg; break; @@ -195,6 +196,7 @@ int main(int argc, char *argv[]) } //prepare output file names + //-------------------------- assert(if_name != NULL); w_if_name = new char[strlen(if_name)+1]; strcpy(w_if_name, if_name); @@ -216,7 +218,6 @@ int main(int argc, char *argv[]) CGAL::set_pretty_mode(*out_verbose); } unsigned int nb_vertices_considered = 0;//count vertices for verbose - // output //load the model from //------------------------------ @@ -232,8 +233,7 @@ int main(int argc, char *argv[]) //exit if not enough points in the model if (min_nb_points > P.size_of_vertices()) exit(0); - - //create maps and property maps + //create property maps //----------------------------- Vertex_VP_map_type vertex2props; Vertex_VPM_type vpm(vertex2props); @@ -293,7 +293,7 @@ int main(int argc, char *argv[]) monge_rep.dump_verbose(*out_verbose); monge_info.dump_verbose(*out_verbose); } - } //END FOR LOOP////////////////////////////////////////////////////////////// + } //all vertices processed //cleanup filenames //------------------