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

Method create

tools/IGL/DiskCutter.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.45

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