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

Method applyTranslation

src/App/ComplexGeoDataPyImp.cpp:257–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257PyObject* 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
275PyObject* ComplexGeoDataPy::applyRotation(PyObject* args)
276{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected