Py::Object CylinderPy::getCenter(void) const { Handle_Geom_CylindricalSurface cyl = Handle_Geom_CylindricalSurface::DownCast (getGeomCylinderPtr()->handle()); gp_Pnt loc = cyl->Location(); return Py::Vector(Base::Vector3d(loc.X(), loc.Y(), loc.Z())); }