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

Method run

tools/ConvexHull/TetGen/TetGenConvexHullEngine.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace PyMesh;
11
12void TetGenConvexHullEngine::run(const MatrixFr& points) {
13 TetgenWrapper tetgen;
14 tetgen.set_keep_convex_hull(true);
15 tetgen.set_verbosity(0);
16 tetgen.set_points(points);
17 tetgen.run();
18
19 m_vertices = tetgen.get_vertices();
20 m_faces = tetgen.get_faces();
21
22 assert(points.rows() == m_vertices.rows());
23
24 m_index_map.setLinSpaced(points.rows(), 0, points.rows()-1);
25}
26
27#endif

Callers

nothing calls this directly

Calls 5

set_keep_convex_hullMethod · 0.80
set_verbosityMethod · 0.45
set_pointsMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45

Tested by

no test coverage detected