]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Groups creation for stream corrected (Bug #315).
authoradv <adv@opencascade.com>
Thu, 9 Jan 2014 12:04:31 +0000 (12:04 +0000)
committeradv <adv@opencascade.com>
Thu, 9 Jan 2014 12:04:31 +0000 (12:04 +0000)
src/HYDROData/HYDROData_Stream.cxx

index 45b38d4de0821f2c494423c44b21f104e978db38..67846466ae3eb3e8f462623cd9a1295bbee0adc7 100644 (file)
@@ -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);