mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0022761: Exception in ModelingData in debug mode
This commit is contained in:
parent
5cedc27f81
commit
c55993db02
@ -143,11 +143,11 @@ void BRepTools::AddUVBounds(const TopoDS_Face& F,
|
||||
Standard_Real pf,pl;
|
||||
Bnd_Box2d Baux;
|
||||
const Handle(Geom2d_Curve) C = BRep_Tool::CurveOnSurface(E,F,pf,pl);
|
||||
if (C.IsNull()) return;
|
||||
if (pl < pf) { // Petit Blindage
|
||||
Standard_Real aux;
|
||||
aux = pf; pf = pl; pl = aux;
|
||||
}
|
||||
if (C.IsNull()) return;
|
||||
Geom2dAdaptor_Curve PC(C,pf,pl);
|
||||
if (Precision::IsNegativeInfinite(pf) ||
|
||||
Precision::IsPositiveInfinite(pf)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user