-// Copyright (C) 2018-20xx CEA/DEN, EDF R&D
+// Copyright (C) 2018-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "GeomAPI_Solid.h"
GeomPointPtr aLocation;
GeomDirPtr anAxis;
- double aRadius;
- double aHeight;
+ double aRadius = 0.0;
+ double aHeight = 0.0;
GeomPlanePtr aCaps[2];
GeomPointPtr anApex;
GeomDirPtr anAxis;
- double aSemiAngle;
- double aHeight;
+ double aSemiAngle = 0.0;
GeomPlanePtr aCaps[2];
else
anAxis = aCurCone->axis();
aSemiAngle = aCurCone->semiAngle();
- aHeight = aCurCone->height();
isCone = true;
}
}
return anInnerPoint;
GProp_GProps aProps;
- BRepGProp::SurfaceProperties(aSolid, aProps, 1.e-4);
+ BRepGProp::VolumeProperties(aSolid, aProps, 1.e-4);
gp_Pnt aPnt = aProps.CentreOfMass();
anInnerPoint = GeomPointPtr(new GeomAPI_Pnt(aPnt.X(), aPnt.Y(), aPnt.Z()));