0022805: Bug of STEP read /writer
authorAMA <>
Fri, 10 Feb 2012 10:09:30 +0000 (10:09 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:32:29 +0000 (19:32 +0400)
src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx

index 7ef696e..4296a07 100755 (executable)
@@ -670,7 +670,9 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
       myEdgePro->Init (Face, edge);
       myEdgePro->Compute(preci);
       if (myEdgePro->IsFirstDone() && myEdgePro->IsLastDone()) {
-       B.Range(edge, Face,myEdgePro->FirstParam(), myEdgePro->LastParam());
+        if (Abs (myEdgePro->FirstParam() - myEdgePro->LastParam()) < Precision::PConfusion())
+          continue;
+        B.Range(edge, Face,myEdgePro->FirstParam(), myEdgePro->LastParam());
       }
       else {
         RemoveSinglePCurve(edge, Face);