diff --git a/AABB_tree/examples/AABB_tree/AABB_cached_bbox_example.cpp b/AABB_tree/examples/AABB_tree/AABB_cached_bbox_example.cpp index 95f20cb189e..cf07b245cba 100644 --- a/AABB_tree/examples/AABB_tree/AABB_cached_bbox_example.cpp +++ b/AABB_tree/examples/AABB_tree/AABB_cached_bbox_example.cpp @@ -81,13 +81,13 @@ void surface_mesh_cache_bbox(char* fname) int main(int argc, char* argv[]) { std::cout << "Polyhedron_3" << std::endl; - triangle_mesh(argv[1]); + triangle_mesh((argc>1)?argv[1]:"data/tetrahedron.off"); std::cout << "Surface_mesh" << std::endl; - triangle_mesh(argv[1]); + triangle_mesh((argc>1)?argv[1]:"data/tetrahedron.off"); std::cout << "Surface_mesh with cached Bbox_3" << std::endl; - surface_mesh_cache_bbox(argv[1]); + surface_mesh_cache_bbox((argc>1)?argv[1]:"data/tetrahedron.off"); return EXIT_SUCCESS; } diff --git a/AABB_tree/include/CGAL/AABB_traits.h b/AABB_tree/include/CGAL/AABB_traits.h index 1db1f0dc8f2..e98d3fcd233 100644 --- a/AABB_tree/include/CGAL/AABB_traits.h +++ b/AABB_tree/include/CGAL/AABB_traits.h @@ -466,7 +466,7 @@ private: template Bounding_box compute_bbox(const Primitive& pr, const PM&)const { - return get(bbm, pr.id()); + return get(bbm, pr.id()); } Bounding_box compute_bbox(const Primitive& pr, const Default&)const