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

Method create

tools/IGL/CellPartition.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace PyMesh;
17
18CellPartition::Ptr CellPartition::create(const Mesh::Ptr& mesh) {
19 const MatrixFr vertices = MatrixUtils::reshape<MatrixFr>(
20 mesh->get_vertices(), mesh->get_num_vertices(), mesh->get_dim());
21 const MatrixIr faces = MatrixUtils::reshape<MatrixIr>(
22 mesh->get_faces(), mesh->get_num_faces(),
23 mesh->get_vertex_per_face());
24 return CellPartition::Ptr(new CellPartition(vertices, faces));
25}
26
27CellPartition::Ptr CellPartition::create_raw(
28 const MatrixFr& vertices, const MatrixIr& faces) {

Callers

nothing calls this directly

Calls 6

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

no test coverage detected