TopTools_SequenceOfShape aShapes;
aShapesGroup->GetShapes( aShapes );
- BRepBuilderAPI_MakeWire aMakeWire;
+ TopoDS_Compound aCompound;
+ BRep_Builder aCompoundBuilder;
+ aCompoundBuilder.MakeCompound( aCompound );
for ( int i = 1, n = aShapes.Length(); i <= n; ++i )
{
- TopoDS_Edge anEdge = TopoDS::Edge( aShapes.Value( i ) );
- aMakeWire.Add( anEdge );
+ const TopoDS_Shape& aShape = aShapes.Value( i );
+ aCompoundBuilder.Add( aCompound, aShape );
}
- aMakeWire.Build();
- TopoDS_Wire aResWire = aMakeWire.Wire();
-
- setWire( aResWire, false, false );
- setBorderColor( Qt::red, false, false );
+ setShape( aCompound, false, false );
}
}