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

Method run

tools/IGL/DiskCutter.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void DiskCutter::run() {
32 std::vector<std::vector<int>> cuts;
33 igl::cut_to_disk(m_faces, cuts);
34
35 MatrixIr voxels(0, 4);
36 Mesh::Ptr mesh = MeshFactory().load_matrices(m_vertices, m_faces, voxels).create();
37 MeshCutter cutter(mesh);
38 Mesh::Ptr cut_mesh = cutter.cut_along_edges(cuts);
39
40 m_out_vertices = MatrixUtils::reshape<MatrixFr>(cut_mesh->get_vertices(),
41 cut_mesh->get_num_vertices(), cut_mesh->get_dim());
42 m_out_faces = MatrixUtils::reshape<MatrixIr>(cut_mesh->get_faces(),
43 cut_mesh->get_num_faces(), cut_mesh->get_vertex_per_face());
44}
45
46#endif

Callers 15

remove_short_edgesMethod · 0.45
extract_resultMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 10

cut_to_diskFunction · 0.85
cut_along_edgesMethod · 0.80
MeshFactoryClass · 0.50
createMethod · 0.45
get_verticesMethod · 0.45
get_num_verticesMethod · 0.45
get_dimMethod · 0.45
get_facesMethod · 0.45
get_num_facesMethod · 0.45
get_vertex_per_faceMethod · 0.45

Tested by 15

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36