Mod: redundant void 2
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
using namespace Part;
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string ConicPy::representation(void) const
|
||||
std::string ConicPy::representation() const
|
||||
{
|
||||
return "<Conic object>";
|
||||
}
|
||||
@@ -55,14 +55,14 @@ int ConicPy::PyInit(PyObject* /*args*/, PyObject* /*kwds*/)
|
||||
return 0;
|
||||
}
|
||||
|
||||
Py::Object ConicPy::getCenter(void) const
|
||||
Py::Object ConicPy::getCenter() const
|
||||
{
|
||||
Handle(Geom_Conic) conic = Handle(Geom_Conic)::DownCast(getGeomConicPtr()->handle());
|
||||
gp_Pnt loc = conic->Location();
|
||||
return Py::Vector(Base::Vector3d(loc.X(), loc.Y(), loc.Z()));
|
||||
}
|
||||
|
||||
Py::Object ConicPy::getLocation(void) const
|
||||
Py::Object ConicPy::getLocation() const
|
||||
{
|
||||
Handle(Geom_Conic) conic = Handle(Geom_Conic)::DownCast(getGeomConicPtr()->handle());
|
||||
gp_Pnt loc = conic->Location();
|
||||
@@ -103,13 +103,13 @@ void ConicPy::setLocation(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Float ConicPy::getEccentricity(void) const
|
||||
Py::Float ConicPy::getEccentricity() const
|
||||
{
|
||||
Handle(Geom_Conic) conic = Handle(Geom_Conic)::DownCast(getGeomConicPtr()->handle());
|
||||
return Py::Float(conic->Eccentricity());
|
||||
}
|
||||
|
||||
Py::Float ConicPy::getAngleXU(void) const
|
||||
Py::Float ConicPy::getAngleXU() const
|
||||
{
|
||||
return Py::Float(getGeomConicPtr()->getAngleXU());
|
||||
}
|
||||
@@ -119,7 +119,7 @@ void ConicPy::setAngleXU(Py::Float arg)
|
||||
getGeomConicPtr()->setAngleXU((double)arg);
|
||||
}
|
||||
|
||||
Py::Object ConicPy::getAxis(void) const
|
||||
Py::Object ConicPy::getAxis() const
|
||||
{
|
||||
Handle(Geom_Conic) conic = Handle(Geom_Conic)::DownCast(getGeomConicPtr()->handle());
|
||||
gp_Ax1 axis = conic->Axis();
|
||||
@@ -155,7 +155,7 @@ void ConicPy::setAxis(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Object ConicPy::getXAxis(void) const
|
||||
Py::Object ConicPy::getXAxis() const
|
||||
{
|
||||
Handle(Geom_Conic) conic = Handle(Geom_Conic)::DownCast(getGeomConicPtr()->handle());
|
||||
gp_Ax1 axis = conic->XAxis();
|
||||
@@ -191,7 +191,7 @@ void ConicPy::setXAxis(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Object ConicPy::getYAxis(void) const
|
||||
Py::Object ConicPy::getYAxis() const
|
||||
{
|
||||
Handle(Geom_Conic) conic = Handle(Geom_Conic)::DownCast(getGeomConicPtr()->handle());
|
||||
gp_Ax1 axis = conic->YAxis();
|
||||
|
||||
Reference in New Issue
Block a user