| 106 | } |
| 107 | |
| 108 | void SelfIntersection::detect_self_intersection() { |
| 109 | clear(); |
| 110 | std::vector<Box> boxes = get_triangle_bboxes(m_points, m_faces); |
| 111 | boost::function<void(const Box& a, const Box& b)> cb = |
| 112 | boost::bind(SelfIntersectionHelper::handle_intersection_candidate, |
| 113 | this, _1, _2); |
| 114 | CGAL::box_self_intersection_d(boxes.begin(), boxes.end(), cb); |
| 115 | } |
| 116 | |
| 117 | void SelfIntersection::clear() { |
| 118 | m_intersecting_pairs.clear(); |