Mod: redundant void 2
This commit is contained in:
@@ -103,7 +103,7 @@ using namespace Part;
|
||||
#endif
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string TopoShapePy::representation(void) const
|
||||
std::string TopoShapePy::representation() const
|
||||
{
|
||||
std::stringstream str;
|
||||
str << "<Shape object at " << getTopoShapePtr() << ">";
|
||||
@@ -2812,7 +2812,7 @@ void TopoShapePy::setLocation(Py::Object o)
|
||||
}
|
||||
#endif
|
||||
|
||||
Py::String TopoShapePy::getShapeType(void) const
|
||||
Py::String TopoShapePy::getShapeType() const
|
||||
{
|
||||
TopoDS_Shape sh = getTopoShapePtr()->getShape();
|
||||
if (sh.IsNull())
|
||||
@@ -2853,7 +2853,7 @@ Py::String TopoShapePy::getShapeType(void) const
|
||||
return Py::String(name);
|
||||
}
|
||||
|
||||
Py::String TopoShapePy::getOrientation(void) const
|
||||
Py::String TopoShapePy::getOrientation() const
|
||||
{
|
||||
TopoDS_Shape sh = getTopoShapePtr()->getShape();
|
||||
if (sh.IsNull())
|
||||
@@ -2907,7 +2907,7 @@ void TopoShapePy::setOrientation(Py::String arg)
|
||||
getTopoShapePtr()->setShape(sh);
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getSubShapes(void) const
|
||||
Py::List TopoShapePy::getSubShapes() const
|
||||
{
|
||||
Py::List ret;
|
||||
const TopoDS_Shape& shape = getTopoShapePtr()->getShape();
|
||||
@@ -2940,47 +2940,47 @@ template<typename T> Py::List getShapes(const TopoShape* shapePtr)
|
||||
return ret;
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getFaces(void) const
|
||||
Py::List TopoShapePy::getFaces() const
|
||||
{
|
||||
return getShapes<TopoShapeFacePy>(getTopoShapePtr());
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getVertexes(void) const
|
||||
Py::List TopoShapePy::getVertexes() const
|
||||
{
|
||||
return getShapes<TopoShapeVertexPy>(getTopoShapePtr());
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getShells(void) const
|
||||
Py::List TopoShapePy::getShells() const
|
||||
{
|
||||
return getShapes<TopoShapeShellPy>(getTopoShapePtr());
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getSolids(void) const
|
||||
Py::List TopoShapePy::getSolids() const
|
||||
{
|
||||
return getShapes<TopoShapeSolidPy>(getTopoShapePtr());
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getCompSolids(void) const
|
||||
Py::List TopoShapePy::getCompSolids() const
|
||||
{
|
||||
return getShapes<TopoShapeCompSolidPy>(getTopoShapePtr());
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getEdges(void) const
|
||||
Py::List TopoShapePy::getEdges() const
|
||||
{
|
||||
return getShapes<TopoShapeEdgePy>(getTopoShapePtr());
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getWires(void) const
|
||||
Py::List TopoShapePy::getWires() const
|
||||
{
|
||||
return getShapes<TopoShapeWirePy>(getTopoShapePtr());
|
||||
}
|
||||
|
||||
Py::List TopoShapePy::getCompounds(void) const
|
||||
Py::List TopoShapePy::getCompounds() const
|
||||
{
|
||||
return getShapes<TopoShapeCompoundPy>(getTopoShapePtr());
|
||||
}
|
||||
|
||||
Py::Float TopoShapePy::getLength(void) const
|
||||
Py::Float TopoShapePy::getLength() const
|
||||
{
|
||||
const TopoDS_Shape& shape = getTopoShapePtr()->getShape();
|
||||
if (shape.IsNull())
|
||||
@@ -2990,7 +2990,7 @@ Py::Float TopoShapePy::getLength(void) const
|
||||
return Py::Float(props.Mass());
|
||||
}
|
||||
|
||||
Py::Float TopoShapePy::getArea(void) const
|
||||
Py::Float TopoShapePy::getArea() const
|
||||
{
|
||||
const TopoDS_Shape& shape = getTopoShapePtr()->getShape();
|
||||
if (shape.IsNull())
|
||||
@@ -3000,7 +3000,7 @@ Py::Float TopoShapePy::getArea(void) const
|
||||
return Py::Float(props.Mass());
|
||||
}
|
||||
|
||||
Py::Float TopoShapePy::getVolume(void) const
|
||||
Py::Float TopoShapePy::getVolume() const
|
||||
{
|
||||
const TopoDS_Shape& shape = getTopoShapePtr()->getShape();
|
||||
if (shape.IsNull())
|
||||
|
||||
Reference in New Issue
Block a user