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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user