From 255fda73563cc1627d57505450d00781a747fe9f Mon Sep 17 00:00:00 2001 From: adv Date: Thu, 26 Dec 2013 11:06:28 +0000 Subject: [PATCH] Presentations for groups is compound. --- src/HYDROGUI/HYDROGUI_Shape.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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 ); } } -- 2.39.2