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

Method transformGeometry

src/App/ComplexGeoDataPyImp.cpp:293–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293PyObject* 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
311PyObject* ComplexGeoDataPy::getElementName(PyObject* args) const
312{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected