| 255 | } |
| 256 | |
| 257 | PyObject* ComplexGeoDataPy::applyTranslation(PyObject* args) |
| 258 | { |
| 259 | PyObject* obj; |
| 260 | if (!PyArg_ParseTuple(args, "O!", &(Base::VectorPy::Type), &obj)) { |
| 261 | return nullptr; |
| 262 | } |
| 263 | |
| 264 | try { |
| 265 | Base::Vector3d move = static_cast<Base::VectorPy*>(obj)->value(); |
| 266 | getComplexGeoDataPtr()->applyTranslation(move); |
| 267 | Py_Return; |
| 268 | } |
| 269 | catch (...) { |
| 270 | PyErr_SetString(PyExc_RuntimeError, "failed to apply rotation"); |
| 271 | return nullptr; |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | PyObject* ComplexGeoDataPy::applyRotation(PyObject* args) |
| 276 | { |