1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0026088: Modeling Algorithms - Exception in pipe algorithm

GeomFill_Sweep.cxx: treatment KPart for sphere is improved
bug26088: test case is corrected - TODO is removed
This commit is contained in:
ifv
2020-08-15 18:28:00 +03:00
committed by bugmaster
parent fba34cf8ba
commit cdddd079cc
2 changed files with 17 additions and 3 deletions

View File

@@ -870,6 +870,15 @@ static Standard_Boolean IsSweepParallelSpine (const Handle(GeomFill_LocationLaw)
isUReversed = Standard_True;
}
if (Abs(l - f) <= Precision::PConfusion() ||
Abs(UlastOnSec - UfirstOnSec) > M_PI_2)
{
// l == f - "degenerated" surface
// UlastOnSec - UfirstOnSec > M_PI_2 - "twisted" surface,
// it is impossible to represent with help of trimmed sphere
return Ok;
}
if ( (f >= -M_PI/2) && (l <= M_PI/2)) {
Ok = Standard_True;
myExchUV = Standard_True;