mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0029356: Modeling Algorithms - GCPnts_TangentialDeflection hangs on specific curve
While UV Iso parameters are obtained in StdPrs_Isolines, UV limits should be applied only if face bounds has infinite values. In the issue case, the UV values are greater than UVLimits and not infinite. This fix makes possible to have correct Iso lines in presentation without modification of UV limits beforehead.
This commit is contained in:
@@ -589,10 +589,14 @@ void StdPrs_Isolines::UVIsoParameters (const TopoDS_Face& theFace,
|
||||
|
||||
BRepTools::UVBounds (theFace, aUmin, aUmax, aVmin, aVmax);
|
||||
|
||||
aUmin = Max (aUmin, -theUVLimit);
|
||||
aUmax = Min (aUmax, theUVLimit);
|
||||
aVmin = Max (aVmin, -theUVLimit);
|
||||
aVmax = Min (aVmax, theUVLimit);
|
||||
if (Precision::IsInfinite (aUmin))
|
||||
aUmin = -theUVLimit;
|
||||
if (Precision::IsInfinite (aUmax))
|
||||
aUmax = theUVLimit;
|
||||
if (Precision::IsInfinite (aVmin))
|
||||
aVmin = -theUVLimit;
|
||||
if (Precision::IsInfinite (aVmax))
|
||||
aVmax = theUVLimit;
|
||||
|
||||
TopLoc_Location aLocation;
|
||||
const Handle(Geom_Surface)& aSurface = BRep_Tool::Surface (theFace, aLocation);
|
||||
|
Reference in New Issue
Block a user