-// Copyright (C) 2018-2019 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
GeomPointPtr aLocation;
GeomDirPtr anAxis;
- double aRadius;
- double aHeight;
+ double aRadius = 0.0;
+ double aHeight = 0.0;
for (TopExp_Explorer anExp(impl<TopoDS_Shape>(), TopAbs_FACE); anExp.More(); anExp.Next()) {
GeomFacePtr aFace(new GeomAPI_Face);
GeomPointPtr anApex;
GeomDirPtr anAxis;
- double aSemiAngle, aTanSemiAngle;
- double aHeight1, aHeight2;
+ double aSemiAngle = 0.0, aTanSemiAngle = 0.0;
+ double aHeight1 = 0.0, aHeight2 = 0.0;
for (TopExp_Explorer anExp(impl<TopoDS_Shape>(), TopAbs_FACE); anExp.More(); anExp.Next()) {
GeomFacePtr aFace(new GeomAPI_Face);
double aSign = anAxis->dot(aCurCone->axis());
double aCurSemiAngle = aCurCone->semiAngle();
- double aTanCurSemiAngle = Tan(aSemiAngle);
+ double aTanCurSemiAngle = Tan(aCurSemiAngle);
double aH = aCurCone->radius1() / aTanCurSemiAngle * aSign;
if (aH < aHeight1)