]> OCCT Git - occt.git/commitdiff
0023338: The 'then' statement is equivalent to the 'else' statement. IGEStoBRep_TopoS...
authorgka <gka@opencascade.com>
Thu, 11 Oct 2012 13:56:32 +0000 (17:56 +0400)
committergka <gka@opencascade.com>
Fri, 19 Oct 2012 14:33:42 +0000 (18:33 +0400)
src/IGESToBRep/IGESToBRep_TopoSurface.cxx

index 65960e3072a14b65dca8f0f227c040a241ce815f..ea324d1acd1ba0b863d034b263ca2340408a7f0c 100755 (executable)
@@ -1521,12 +1521,8 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferPlaneParts(const Handle(IGESGeom_Pl
        gp_Trsf trans;
        if (crv->IsKind(STANDARD_TYPE(IGESGeom_CurveOnSurface))) {
          DeclareAndCast(IGESGeom_CurveOnSurface, crv142, crv);
-         if(st->HasBoundingCurveHole()) {    
-           TopoDS_Shape myshape = TC.TransferCurveOnFace (plane, crv142, trans, TheULength, Standard_False);
-         }
-         else {
-           TopoDS_Shape myshape = TC.TransferCurveOnFace (plane, crv142, trans, TheULength, Standard_False);
-         }
+         TopoDS_Shape myshape = TC.TransferCurveOnFace (plane, crv142, trans, TheULength, Standard_False);
+         
          //:3 by ABV 5 Nov 97: set plane to be finite
          if ( first ) {
            TopExp_Explorer ws ( plane, TopAbs_WIRE );