Salome HOME
Exlude the user input during process events by application (Bug #325).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Shape.cxx
index 862c9e1857ed19f35f81fb363ef24e7df0434891..7739a90ed91925faf577af9c7c5c45b407847c7e 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 );  
     }
   }
  
@@ -581,6 +579,8 @@ void HYDROGUI_Shape::buildShape()
     myShape = new AIS_Shape( myTopoShape );
   }
 
+  myShape->SetHLRAngleAndDeviation( 0.001 );
+
   if ( !myObject.IsNull() )
     myShape->SetOwner( myObject );