Mod: redundant void 2
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
using namespace Part;
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string ToroidPy::representation(void) const
|
||||
std::string ToroidPy::representation() const
|
||||
{
|
||||
return "<Toroid object>";
|
||||
}
|
||||
@@ -62,7 +62,7 @@ int ToroidPy::PyInit(PyObject* args, PyObject* /*kwd*/)
|
||||
return -1;
|
||||
}
|
||||
|
||||
Py::Float ToroidPy::getMajorRadius(void) const
|
||||
Py::Float ToroidPy::getMajorRadius() const
|
||||
{
|
||||
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
|
||||
(getGeomToroidPtr()->handle());
|
||||
@@ -81,7 +81,7 @@ void ToroidPy::setMajorRadius(Py::Float arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Float ToroidPy::getMinorRadius(void) const
|
||||
Py::Float ToroidPy::getMinorRadius() const
|
||||
{
|
||||
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
|
||||
(getGeomToroidPtr()->handle());
|
||||
@@ -100,7 +100,7 @@ void ToroidPy::setMinorRadius(Py::Float arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Object ToroidPy::getCenter(void) const
|
||||
Py::Object ToroidPy::getCenter() const
|
||||
{
|
||||
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
|
||||
(getGeomToroidPtr()->handle());
|
||||
@@ -124,7 +124,7 @@ void ToroidPy::setCenter(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Object ToroidPy::getAxis(void) const
|
||||
Py::Object ToroidPy::getAxis() const
|
||||
{
|
||||
Handle(Geom_ElementarySurface) s = Handle(Geom_ElementarySurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -167,14 +167,14 @@ void ToroidPy::setAxis(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Float ToroidPy::getArea(void) const
|
||||
Py::Float ToroidPy::getArea() const
|
||||
{
|
||||
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
|
||||
(getGeomToroidPtr()->handle());
|
||||
return Py::Float(torus->Area());
|
||||
}
|
||||
|
||||
Py::Float ToroidPy::getVolume(void) const
|
||||
Py::Float ToroidPy::getVolume() const
|
||||
{
|
||||
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
|
||||
(getGeomToroidPtr()->handle());
|
||||
|
||||
Reference in New Issue
Block a user