Salome HOME
Correct case when the weak-named attribute is dumped in Geom mode: geometrical repres...
[modules/shaper.git] / src / GeomAPI / GeomAPI_Face.cpp
index 8e8a036552229f714fd34183216f69bdfc34d72c..bf2dbddf17bd7984038420423b2d94ffd5b6b255 100644 (file)
@@ -203,8 +203,8 @@ std::shared_ptr<GeomAPI_Cone> GeomAPI_Face::getCone() const
     BRepTools::UVBounds(aFace, aUMin, aUMax, aVMin, aVMax);
 
     double aSemiAngle = Abs(aCon.SemiAngle());
-    double aRadius1 = aCon.RefRadius() + aVMin * Sin(aCon.SemiAngle());
-    double aRadius2 = aCon.RefRadius() + aVMax * Sin(aCon.SemiAngle());
+    double aRadius1 = Abs(aCon.RefRadius() + aVMin * Sin(aCon.SemiAngle()));
+    double aRadius2 = Abs(aCon.RefRadius() + aVMax * Sin(aCon.SemiAngle()));
 
     aLoc.ChangeCoord() += aDir.XYZ() * aVMin * Cos(aCon.SemiAngle());