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

Method getGeometricCenter

src/Mod/TechDraw/App/DrawViewPartPyImp.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176PyObject* DrawViewPartPy::getGeometricCenter(PyObject *args)
177{
178 if (!PyArg_ParseTuple(args, "")) {
179 return nullptr;
180 }
181
182 DrawViewPart* dvp = getDrawViewPartPtr();
183 Base::Vector3d pointOut = dvp->getCurrentCentroid();
184 return new Base::VectorPy(new Base::Vector3d(pointOut));
185}
186
187
188// remove all cosmetics

Callers

nothing calls this directly

Calls 1

getCurrentCentroidMethod · 0.80

Tested by

no test coverage detected