MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / applyRotation

Method applyRotation

src/App/ComplexGeoDataPyImp.cpp:275–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275PyObject* 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
293PyObject* ComplexGeoDataPy::transformGeometry(PyObject* args)
294{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected