From: adv Date: Thu, 26 Dec 2013 11:06:28 +0000 (+0000) Subject: Presentations for groups is compound. X-Git-Tag: BR_hydro_v_0_7~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=255fda73563cc1627d57505450d00781a747fe9f;p=modules%2Fhydro.git Presentations for groups is compound. --- diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index 862c9e18..998ad9bc 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -362,19 +362,17 @@ void HYDROGUI_Shape::update( const bool theIsUpdateViewer, 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 ); } }