temporary bug fix

why is Patch_id_property_map broken when we get to use it?
This commit is contained in:
Jane Tournois 2016-01-08 14:15:04 +01:00
parent fddfb4f933
commit c7926a87b0
2 changed files with 6 additions and 4 deletions

View File

@ -84,8 +84,9 @@ public:
void intersection(const Point_3& query, const Primitive& primitive)
{
const Index_type& id = get(index_map, primitive.id());
std::cout << id << "\t" << primitive.patch_id() << std::endl;
const Index_type& id = primitive.patch_id();
// get(index_map, primitive.id());
// std::cout << id << "\t" << primitive.patch_id() << std::endl;
CGAL_assertion(id == primitive.patch_id());
if(keep != (set_of_indices.count(id) > 0)) return;

View File

@ -200,6 +200,7 @@ namespace internal {
input_triangles_.push_back(triangle(f));
input_patch_ids_.push_back(get_patch_id(f));
}
CGAL_assertion(input_triangles_.size() == input_patch_ids_.size());
tree_ptr_ = new AABB_tree(input_triangles_.begin(),
input_triangles_.end(),
@ -850,8 +851,8 @@ namespace internal {
);
tree_ptr_->traversal(get(vpmap_, v), projection_traits);
if(!projection_traits.found())
tree_ptr_->traversal(get(vpmap_, v), projection_traits);
CGAL_assertion(projection_traits.found());
Point proj = projection_traits.closest_point();
put(vpmap_, v, proj);
}