1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028054: Regression: Class BRepProj_Projection gives invalid result after projection edge based on the line on the conical surface

Problem of projection of line on the cone in the special case when starting point of the line coincides with the cone apex is fixed (by shifting this point along the source line).
This commit is contained in:
nbv
2016-11-07 18:48:37 +03:00
committed by abv
parent 2a8d1e7bcf
commit b070046674
5 changed files with 114 additions and 13 deletions

View File

@@ -113,11 +113,9 @@ Standard_Real ATan2 (const Standard_Real Value, const Standard_Real Other)
//-------------------------------------------------------------------
// Sign : Returns |a| if B >= 0; -|a| if b < 0.
// from x in the direction y
//-------------------------------------------------------------------
Standard_Real Sign(const Standard_Real a, const Standard_Real b)
{
//==== We use the function "nextafter()" fom library "math.h" ==============
if (b >= 0.0) {
return Abs(a);
} else {

View File

@@ -37,7 +37,10 @@ __Standard_API Standard_Real ACosApprox (const Standard_Real );
__Standard_API Standard_Real ASin (const Standard_Real );
__Standard_API Standard_Real ATan2 (const Standard_Real , const Standard_Real );
__Standard_API Standard_Real NextAfter (const Standard_Real , const Standard_Real );
__Standard_API Standard_Real Sign (const Standard_Real , const Standard_Real );
//! Returns |a| if b >= 0; -|a| if b < 0.
__Standard_API Standard_Real Sign(const Standard_Real a, const Standard_Real b);
__Standard_API Standard_Real ATanh (const Standard_Real );
__Standard_API Standard_Real ACosh (const Standard_Real );
__Standard_API Standard_Real Sinh (const Standard_Real );