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);