| 273 | } |
| 274 | |
| 275 | PyObject* ComplexGeoDataPy::applyRotation(PyObject* args) |
| 276 | { |
| 277 | PyObject* obj; |
| 278 | if (!PyArg_ParseTuple(args, "O!", &(Base::RotationPy::Type), &obj)) { |
| 279 | return nullptr; |
| 280 | } |
| 281 | |
| 282 | try { |
| 283 | Base::Rotation rot = static_cast<Base::RotationPy*>(obj)->value(); |
| 284 | getComplexGeoDataPtr()->applyRotation(rot); |
| 285 | Py_Return; |
| 286 | } |
| 287 | catch (...) { |
| 288 | PyErr_SetString(PyExc_RuntimeError, "failed to apply rotation"); |
| 289 | return nullptr; |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | PyObject* ComplexGeoDataPy::transformGeometry(PyObject* args) |
| 294 | { |