| 11 | using namespace PyMesh; |
| 12 | |
| 13 | MinkowskiSum::Ptr MinkowskiSum::create(const Mesh::Ptr& mesh) { |
| 14 | const MatrixFr vertices = MatrixUtils::reshape<MatrixFr>( |
| 15 | mesh->get_vertices(), mesh->get_num_vertices(), mesh->get_dim()); |
| 16 | const MatrixIr faces = MatrixUtils::reshape<MatrixIr>( |
| 17 | mesh->get_faces(), mesh->get_num_faces(), |
| 18 | mesh->get_vertex_per_face()); |
| 19 | return MinkowskiSum::Ptr(new MinkowskiSum(vertices, faces)); |
| 20 | } |
| 21 | |
| 22 | MinkowskiSum::Ptr MinkowskiSum::create_raw( |
| 23 | const MatrixFr& vertices, const MatrixIr& faces) { |
nothing calls this directly
no test coverage detected