mirror of https://github.com/CGAL/cgal
Hid some debug code with macros
This commit is contained in:
parent
fb8c3e8a27
commit
dad74ae1f2
|
|
@ -995,10 +995,12 @@ scan_triangulation_impl()
|
||||||
{
|
{
|
||||||
// Cannot be const, see treat_new_facet signature
|
// Cannot be const, see treat_new_facet signature
|
||||||
Facet facet = *facet_it;
|
Facet facet = *facet_it;
|
||||||
|
#ifdef CGAL_MESH_3_VERBOSE
|
||||||
std::cerr << "TREAT FACET : " << std::endl
|
std::cerr << "TREAT FACET : " << std::endl
|
||||||
<< "*" << *facet.first->vertex((facet.second+1)%4) << std::endl
|
<< "*" << *facet.first->vertex((facet.second+1)%4) << std::endl
|
||||||
<< " " << *facet.first->vertex((facet.second+2)%4) << std::endl
|
<< " " << *facet.first->vertex((facet.second+2)%4) << std::endl
|
||||||
<< " " << *facet.first->vertex((facet.second+3)%4) << std::endl;
|
<< " " << *facet.first->vertex((facet.second+3)%4) << std::endl;
|
||||||
|
#endif
|
||||||
this->treat_new_facet(facet);
|
this->treat_new_facet(facet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1562,12 +1564,14 @@ treat_new_facet(Facet& facet)
|
||||||
{
|
{
|
||||||
insert_bad_facet(facet, *is_facet_bad);
|
insert_bad_facet(facet, *is_facet_bad);
|
||||||
|
|
||||||
|
#ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA
|
||||||
std::cerr << "INSERT BAD FACET : " << std::endl
|
std::cerr << "INSERT BAD FACET : " << std::endl
|
||||||
<< "* " << *facet.first->vertex((facet.second+1)%4) << std::endl
|
<< "* " << *facet.first->vertex((facet.second+1)%4) << std::endl
|
||||||
<< " " << *facet.first->vertex((facet.second+2)%4) << std::endl
|
<< " " << *facet.first->vertex((facet.second+2)%4) << std::endl
|
||||||
<< " " << *facet.first->vertex((facet.second+3)%4) << std::endl
|
<< " " << *facet.first->vertex((facet.second+3)%4) << std::endl
|
||||||
<< " Surface center: " << get_facet_surface_center(facet) << std::endl
|
<< " Surface center: " << get_facet_surface_center(facet) << std::endl
|
||||||
<< " Quality = " << is_facet_bad->second << std::endl;
|
<< " Quality = " << is_facet_bad->second << std::endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -892,7 +892,7 @@ public:
|
||||||
|
|
||||||
void build_curves_aabb_tree() const
|
void build_curves_aabb_tree() const
|
||||||
{
|
{
|
||||||
#if CGAL_MESH_3_VERBOSE
|
#ifdef CGAL_MESH_3_VERBOSE
|
||||||
std::cerr << "Building curves AABB tree...";
|
std::cerr << "Building curves AABB tree...";
|
||||||
CGAL::Real_timer timer;
|
CGAL::Real_timer timer;
|
||||||
timer.start();
|
timer.start();
|
||||||
|
|
@ -914,7 +914,7 @@ public:
|
||||||
}
|
}
|
||||||
curves_aabb_tree_.build();
|
curves_aabb_tree_.build();
|
||||||
curves_aabb_tree_is_built = true;
|
curves_aabb_tree_is_built = true;
|
||||||
#if CGAL_MESH_3_VERBOSE
|
#ifdef CGAL_MESH_3_VERBOSE
|
||||||
timer.stop();
|
timer.stop();
|
||||||
std::cerr << " done (" << timer.time() * 1000 << " ms)" << std::endl;
|
std::cerr << " done (" << timer.time() * 1000 << " ms)" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -507,7 +507,7 @@ public:
|
||||||
/// @cond DEVELOPERS
|
/// @cond DEVELOPERS
|
||||||
template <typename C3t3>
|
template <typename C3t3>
|
||||||
void add_vertices_to_c3t3_on_patch_without_feature_edges(C3t3& c3t3) const {
|
void add_vertices_to_c3t3_on_patch_without_feature_edges(C3t3& c3t3) const {
|
||||||
#if CGAL_MESH_3_VERBOSE
|
#ifdef CGAL_MESH_3_VERBOSE
|
||||||
std::cout << "add_vertices_to_c3t3_on_patch_without_feature_edges...";
|
std::cout << "add_vertices_to_c3t3_on_patch_without_feature_edges...";
|
||||||
std::cout.flush();
|
std::cout.flush();
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -637,7 +637,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if CGAL_MESH_3_VERBOSE
|
#ifdef CGAL_MESH_3_VERBOSE
|
||||||
std::cout << "\badd_vertices_to_c3t3_on_patch_without_feature_edges done.";
|
std::cout << "\badd_vertices_to_c3t3_on_patch_without_feature_edges done.";
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -653,7 +653,7 @@ public:
|
||||||
first_intersected_primitive(ray);
|
first_intersected_primitive(ray);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if USE_ALL_INTERSECTIONS
|
#ifdef USE_ALL_INTERSECTIONS
|
||||||
boost::optional<AABB_primitive_id> shoot_a_ray_2(const Ray_3 ray) const {
|
boost::optional<AABB_primitive_id> shoot_a_ray_2(const Ray_3 ray) const {
|
||||||
const Point_3& p = ray.source();
|
const Point_3& p = ray.source();
|
||||||
typedef typename AABB_tree::
|
typedef typename AABB_tree::
|
||||||
|
|
@ -883,7 +883,7 @@ detect_features(FT angle_in_degree,
|
||||||
initialize_ts(p);
|
initialize_ts(p);
|
||||||
using internal::Mesh_3::Get_face_index_pmap;
|
using internal::Mesh_3::Get_face_index_pmap;
|
||||||
Get_face_index_pmap<Polyhedron_type> get_face_index_pmap(p);
|
Get_face_index_pmap<Polyhedron_type> get_face_index_pmap(p);
|
||||||
#if CGAL_MESH_3_VERBOSE
|
#ifdef CGAL_MESH_3_VERBOSE
|
||||||
std::size_t poly_id = &p-&poly[0];
|
std::size_t poly_id = &p-&poly[0];
|
||||||
std::cerr << "Polyhedron #" << poly_id << " :\n";
|
std::cerr << "Polyhedron #" << poly_id << " :\n";
|
||||||
std::cerr << " material #" << patch_indices[poly_id].first << "\n";
|
std::cerr << " material #" << patch_indices[poly_id].first << "\n";
|
||||||
|
|
@ -909,7 +909,7 @@ detect_features(FT angle_in_degree,
|
||||||
}
|
}
|
||||||
this->patch_id_to_polyhedron_id.resize(nb_of_patch_plus_one);
|
this->patch_id_to_polyhedron_id.resize(nb_of_patch_plus_one);
|
||||||
this->patch_has_featured_edges.resize(nb_of_patch_plus_one);
|
this->patch_has_featured_edges.resize(nb_of_patch_plus_one);
|
||||||
#if CGAL_MESH_3_VERBOSE
|
#ifdef CGAL_MESH_3_VERBOSE
|
||||||
std::cerr << "Number of patches: " << (nb_of_patch_plus_one - 1) << std::endl;
|
std::cerr << "Number of patches: " << (nb_of_patch_plus_one - 1) << std::endl;
|
||||||
#endif
|
#endif
|
||||||
BOOST_FOREACH(Polyhedron_type& p, poly)
|
BOOST_FOREACH(Polyhedron_type& p, poly)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue