| 291 | } |
| 292 | |
| 293 | PyObject* ComplexGeoDataPy::transformGeometry(PyObject* args) |
| 294 | { |
| 295 | PyObject* obj; |
| 296 | if (!PyArg_ParseTuple(args, "O!", &(Base::MatrixPy::Type), &obj)) { |
| 297 | return nullptr; |
| 298 | } |
| 299 | |
| 300 | try { |
| 301 | Base::Matrix4D mat = static_cast<Base::MatrixPy*>(obj)->value(); |
| 302 | getComplexGeoDataPtr()->transformGeometry(mat); |
| 303 | Py_Return; |
| 304 | } |
| 305 | catch (...) { |
| 306 | PyErr_SetString(PyExc_RuntimeError, "failed to transform geometry"); |
| 307 | return nullptr; |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | PyObject* ComplexGeoDataPy::getElementName(PyObject* args) const |
| 312 | { |