From: adv Date: Thu, 9 Jan 2014 12:04:31 +0000 (+0000) Subject: Groups creation for stream corrected (Bug #315). X-Git-Tag: BR_hydro_v_0_8~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=714920b85b7052a87bc3c1305645942d889f8d09;p=modules%2Fhydro.git Groups creation for stream corrected (Bug #315). --- diff --git a/src/HYDROData/HYDROData_Stream.cxx b/src/HYDROData/HYDROData_Stream.cxx index 45b38d4d..67846466 100644 --- a/src/HYDROData/HYDROData_Stream.cxx +++ b/src/HYDROData/HYDROData_Stream.cxx @@ -267,15 +267,31 @@ void HYDROData_Stream::UpdatePrs() if(aMakeEdge3.IsDone()) aTopEdge = aMakeEdge3.Edge(); - BRepBuilderAPI_MakeWire aMakeWire( aBotEdge, anEdgLeft, aTopEdge,anEdgRight); + // Make wire for 2D presentation with updating of corresponding edges + BRepBuilderAPI_MakeWire aMakeWire; + + aMakeWire.Add( aBotEdge ); + aBotEdge = aMakeWire.Edge(); + + aMakeWire.Add( anEdgLeft ); + anEdgLeft = aMakeWire.Edge(); + + aMakeWire.Add( aTopEdge ); + aTopEdge = aMakeWire.Edge(); + + aMakeWire.Add( anEdgRight ); + anEdgRight = aMakeWire.Edge(); + TopoDS_Wire aSectProfileWire; if(aMakeWire.IsDone()) aSectProfileWire = aMakeWire.Wire(); + BRepBuilderAPI_MakeFace aMakeFace( aSectProfileWire, Standard_True ); TopoDS_Face aFace; aMakeFace.Build(); if( aMakeFace.IsDone() ) aFace = aMakeFace.Face(); + aCmp.Nullify(); aBB.MakeCompound(aCmp); aBB.Add(aCmp,aFace);