MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / detect_self_intersection

Method detect_self_intersection

tools/CGAL/SelfIntersection.cpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void 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
117void SelfIntersection::clear() {
118 m_intersecting_pairs.clear();

Callers 6

detect_self_intersectionFunction · 0.95
mainFunction · 0.80
mainFunction · 0.80

Calls 3

get_triangle_bboxesFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1