| 273 | "); |
| 274 | |
| 275 | static PyObject * |
| 276 | Mesher_get_mesh(PyMeshingMesher* self, PyObject* args) |
| 277 | { |
| 278 | using namespace MeshingMesher; |
| 279 | auto api = PyUtilApiFunction("", PyRunTimeErr, __func__); |
| 280 | |
| 281 | auto mesher = self->mesher; |
| 282 | if (!MeshExists(api, mesher)) { |
| 283 | return nullptr; |
| 284 | } |
| 285 | |
| 286 | // Get the cvUnstructuredGrid: |
| 287 | auto mesh = mesher->GetUnstructuredGrid(); |
| 288 | if (mesh == NULL) { |
| 289 | api.error("Could not get the unstructured grid for the mesh."); |
| 290 | return nullptr; |
| 291 | } |
| 292 | |
| 293 | auto vtkUnstructuredGrid = mesh->GetVtkUnstructuredGrid(); |
| 294 | return vtkPythonUtil::GetObjectFromPointer(vtkUnstructuredGrid); |
| 295 | } |
| 296 | |
| 297 | //--------------------------- |
| 298 | // Mesher_get_model_face_ids |
nothing calls this directly
no test coverage detected