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

Method run

tools/Tetrahedralization/TetGen/TetGenEngine.cpp:11–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace PyMesh;
10
11void TetGenEngine::run() {
12 preprocess();
13
14 // Use the volume of regular tetrahedron of radius m_cell_size as max
15 // volume.
16 Float max_tet_volume = 8 * pow(m_cell_size, 3) / (9 * sqrt(3));
17
18 TetgenWrapper tetgen;
19 tetgen.set_points(m_vertices);
20 tetgen.set_triangles(m_faces);
21 tetgen.set_verbosity(1);
22 tetgen.set_max_tet_volume(max_tet_volume);
23 tetgen.set_max_radius_edge_ratio(m_cell_radius_edge_ratio);
24 tetgen.run();
25
26 m_vertices = tetgen.get_vertices();
27 m_faces = tetgen.get_faces();
28 m_voxels = tetgen.get_voxels();
29}
30
31#endif

Callers

nothing calls this directly

Calls 8

set_max_tet_volumeMethod · 0.80
set_pointsMethod · 0.45
set_trianglesMethod · 0.45
set_verbosityMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45
get_voxelsMethod · 0.45

Tested by

no test coverage detected