Part: remove trailing whitespace
This commit is contained in:
@@ -48,9 +48,9 @@ std::string SpherePy::representation() const
|
||||
|
||||
std::stringstream str;
|
||||
str << "Sphere (";
|
||||
str << "Radius : " << fRad << ", ";
|
||||
str << "Center : (" << loc.X() << ", "<< loc.Y() << ", "<< loc.Z() << "), ";
|
||||
str << "Direction : (" << dir.X() << ", "<< dir.Y() << ", "<< dir.Z() << ")";
|
||||
str << "Radius : " << fRad << ", ";
|
||||
str << "Center : (" << loc.X() << ", "<< loc.Y() << ", "<< loc.Z() << "), ";
|
||||
str << "Direction : (" << dir.X() << ", "<< dir.Y() << ", "<< dir.Z() << ")";
|
||||
str << ")";
|
||||
|
||||
return str.str();
|
||||
@@ -58,7 +58,7 @@ std::string SpherePy::representation() const
|
||||
|
||||
PyObject *SpherePy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Python wrapper
|
||||
{
|
||||
// create a new instance of SpherePy and the Twin object
|
||||
// create a new instance of SpherePy and the Twin object
|
||||
return new SpherePy(new GeomSphere);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ Py::Float SpherePy::getRadius() const
|
||||
{
|
||||
Handle(Geom_SphericalSurface) sphere = Handle(Geom_SphericalSurface)::DownCast
|
||||
(getGeomSpherePtr()->handle());
|
||||
return Py::Float(sphere->Radius());
|
||||
return Py::Float(sphere->Radius());
|
||||
}
|
||||
|
||||
void SpherePy::setRadius(Py::Float arg)
|
||||
@@ -93,14 +93,14 @@ Py::Float SpherePy::getArea() const
|
||||
{
|
||||
Handle(Geom_SphericalSurface) sphere = Handle(Geom_SphericalSurface)::DownCast
|
||||
(getGeomSpherePtr()->handle());
|
||||
return Py::Float(sphere->Area());
|
||||
return Py::Float(sphere->Area());
|
||||
}
|
||||
|
||||
Py::Float SpherePy::getVolume() const
|
||||
{
|
||||
Handle(Geom_SphericalSurface) sphere = Handle(Geom_SphericalSurface)::DownCast
|
||||
(getGeomSpherePtr()->handle());
|
||||
return Py::Float(sphere->Volume());
|
||||
return Py::Float(sphere->Volume());
|
||||
}
|
||||
|
||||
Py::Object SpherePy::getCenter() const
|
||||
@@ -183,5 +183,5 @@ PyObject *SpherePy::getCustomAttributes(const char* /*attr*/) const
|
||||
|
||||
int SpherePy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
|
||||
{
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user