]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Presentations for groups is compound.
authoradv <adv@opencascade.com>
Thu, 26 Dec 2013 11:06:28 +0000 (11:06 +0000)
committeradv <adv@opencascade.com>
Thu, 26 Dec 2013 11:06:28 +0000 (11:06 +0000)
src/HYDROGUI/HYDROGUI_Shape.cxx

index 862c9e1857ed19f35f81fb363ef24e7df0434891..998ad9bc7f47a62dc06cb500d20d2bab42760164 100644 (file)
@@ -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 );  
     }
   }