0031148: Modeling Algorithms - Offset adjacent co-planar faces with different offset...
[occt.git] / src / BRepOffset / BRepOffset_Tool.cxx
index a57a0c2..38f21f0 100644 (file)
@@ -2948,7 +2948,11 @@ static void CompactUVBounds (const TopoDS_Face& F,
     C.D0(U2,P);
     B.Add(P);
   }
-  B.Get(UMin,VMin,UMax,VMax);
+
+  if (!B.IsVoid())
+    B.Get(UMin,VMin,UMax,VMax);
+  else
+    BRep_Tool::Surface(F)->Bounds (UMin, UMax, VMin, VMax);
 }
 
 //=======================================================================