Fixed g++ warnings

This commit is contained in:
Laurent Saboret 2008-08-28 14:14:49 +00:00
parent 8f1e17abcf
commit 5de6d12b43
3 changed files with 19 additions and 6 deletions

13
.gitignore vendored
View File

@ -452,10 +452,23 @@ Surface_reconstruction_3/doc_doxygen
Surface_reconstruction_3/doc_html
Surface_reconstruction_3/doc_pdf
Surface_reconstruction_3/doc_ps
Surface_reconstruction_3/examples/Surface_reconstruction_3/*.kdev*
Surface_reconstruction_3/examples/Surface_reconstruction_3/*.ncb
Surface_reconstruction_3/examples/Surface_reconstruction_3/*.suo
Surface_reconstruction_3/examples/Surface_reconstruction_3/.cdtproject
Surface_reconstruction_3/examples/Surface_reconstruction_3/.project
Surface_reconstruction_3/examples/Surface_reconstruction_3/.settings
Surface_reconstruction_3/examples/Surface_reconstruction_3/APSS_reconstruction
Surface_reconstruction_3/examples/Surface_reconstruction_3/AQtimeProject
Surface_reconstruction_3/examples/Surface_reconstruction_3/ProgramOutput.*
Surface_reconstruction_3/examples/Surface_reconstruction_3/cgal_test
Surface_reconstruction_3/examples/Surface_reconstruction_3/debug
Surface_reconstruction_3/examples/Surface_reconstruction_3/error.txt
Surface_reconstruction_3/examples/Surface_reconstruction_3/makefile
Surface_reconstruction_3/examples/Surface_reconstruction_3/poisson_reconstruction
Surface_reconstruction_3/examples/Surface_reconstruction_3/polygirl_apss.off
Surface_reconstruction_3/examples/Surface_reconstruction_3/polygirl_poisson.off
Surface_reconstruction_3/examples/Surface_reconstruction_3/release
Surface_reconstruction_3/test/Surface_reconstruction_3/*.kdev*
Surface_reconstruction_3/test/Surface_reconstruction_3/*.ncb
Surface_reconstruction_3/test/Surface_reconstruction_3/*.suo

View File

@ -100,7 +100,7 @@ int main(int argc, char * argv[])
// Note: 1.5 * Poisson's distance gives roughly the same number of triangles.
FT sm_error_bound = 1e-3;
for (unsigned int i=3; i+1<argc ; ++i)
for (int i=3; i+1<argc ; ++i)
{
if (std::string(argv[i])=="-sm_radius")
sm_radius = atof(argv[++i]);
@ -250,7 +250,7 @@ int main(int argc, char * argv[])
CGAL::Surface_mesh_default_criteria_3<STr> criteria(sm_angle, // lower bound of facets angles (degrees)
sm_radius*size, // upper bound of Delaunay balls radii
sm_distance*size); // upper bound of distance to surface
CGAL_TRACE_STREAM << " make_surface_mesh(dichotomy error="<<sm_error_bound<<" * point set radius,\n"
<< " sphere center=("<<sm_sphere_center << "),\n"
<< " sphere radius="<<sm_sphere_radius/size<<" * p.s.r.,\n"

View File

@ -99,7 +99,7 @@ int main(int argc, char * argv[])
FT sm_distance = 0.002; // AG: was 0.005 (upper bound of distance to surface/Poisson)
FT sm_error_bound = 1e-3;
for (unsigned int i=3; i+1<argc ; ++i)
for (int i=3; i+1<argc ; ++i)
{
if (std::string(argv[i])=="-sm_radius")
sm_radius = atof(argv[++i]);
@ -200,7 +200,7 @@ int main(int argc, char * argv[])
std::cerr << "Create triangulation...\n";
// Create implicit function and triangulation.
// Create implicit function and triangulation.
// Insert vertices and normals in triangulation.
Dt3 dt;
Poisson_implicit_function poisson_function(dt, pwns.begin(), pwns.end());
@ -211,7 +211,7 @@ int main(int argc, char * argv[])
<< (memory>>20) << " Mb allocated"
<< std::endl;
task_timer.reset();
std::cerr << "Compute implicit function...\n";
/// Compute the Poisson indicator function f()
@ -263,7 +263,7 @@ int main(int argc, char * argv[])
CGAL::Surface_mesh_default_criteria_3<STr> criteria(sm_angle, // lower bound of facets angles (degrees)
sm_radius*size, // upper bound of Delaunay balls radii
sm_distance*size); // upper bound of distance to surface
CGAL_TRACE_STREAM << " make_surface_mesh(dichotomy error="<<sm_error_bound<<" * point set radius,\n"
<< " sphere center=("<<sm_sphere_center << "),\n"
<< " sphere radius="<<sm_sphere_radius/size<<" * p.s.r.,\n"