From 45c0ba3664f1b1b95375849a3b3bf83415230bc0 Mon Sep 17 00:00:00 2001 From: gka Date: Thu, 11 Oct 2012 17:56:32 +0400 Subject: [PATCH] 0023338: The 'then' statement is equivalent to the 'else' statement. IGEStoBRep_TopoSurface.cxx --- src/IGESToBRep/IGESToBRep_TopoSurface.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/IGESToBRep/IGESToBRep_TopoSurface.cxx b/src/IGESToBRep/IGESToBRep_TopoSurface.cxx index 65960e3072..ea324d1acd 100755 --- a/src/IGESToBRep/IGESToBRep_TopoSurface.cxx +++ b/src/IGESToBRep/IGESToBRep_TopoSurface.cxx @@ -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 ); -- 2.39.5