X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Face.cpp;h=bf2dbddf17bd7984038420423b2d94ffd5b6b255;hb=f60dc9dd94d5d4b0ea07e3e3cbfd5b3028f0942d;hp=8e8a036552229f714fd34183216f69bdfc34d72c;hpb=2e9b24400c6194f045ae581a77bc2a49e6626fe0;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Face.cpp b/src/GeomAPI/GeomAPI_Face.cpp index 8e8a03655..bf2dbddf1 100644 --- a/src/GeomAPI/GeomAPI_Face.cpp +++ b/src/GeomAPI/GeomAPI_Face.cpp @@ -203,8 +203,8 @@ std::shared_ptr 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());