| 16 | using namespace PyMesh; |
| 17 | |
| 18 | CellPartition::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 | |
| 27 | CellPartition::Ptr CellPartition::create_raw( |
| 28 | const MatrixFr& vertices, const MatrixIr& faces) { |
nothing calls this directly
no test coverage detected