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

Method AABBTree2

tools/CGAL/AABBTree2.h:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32 public:
33 AABBTree2(const Matrix2Fr& points, const Matrix2Ir& segments) {
34 const size_t num_segments = segments.rows();
35 for (size_t i=0; i<num_segments; i++) {
36 const Vector2I& s = segments.row(i);
37 m_segments.emplace_back(
38 to_cgal_point(points.row(s[0])),
39 to_cgal_point(points.row(s[1])));
40 }
41
42 m_tree = std::make_shared<Tree>(m_segments.begin(), m_segments.end());
43 m_tree->accelerate_distance_queries();
44 }
45
46 public:
47 /**

Callers 3

load_dataMethod · 0.80
compute_metricFunction · 0.80
solve_heat_equationFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected