Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exlude the user input during process events by application (Bug #325).
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_Shape.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_Shape.cxx
b/src/HYDROGUI/HYDROGUI_Shape.cxx
index 862c9e1857ed19f35f81fb363ef24e7df0434891..7739a90ed91925faf577af9c7c5c45b407847c7e 100644
(file)
--- 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 );
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 )
{
for ( int i = 1, n = aShapes.Length(); i <= n; ++i )
{
-
TopoDS_Edge anEdge = TopoDS::Edge( aShapes.Value( i )
);
- a
MakeWire.Add( anEdg
e );
+
const TopoDS_Shape& aShape = aShapes.Value( i
);
+ a
CompoundBuilder.Add( aCompound, aShap
e );
}
}
- 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 = new AIS_Shape( myTopoShape );
}
+ myShape->SetHLRAngleAndDeviation( 0.001 );
+
if ( !myObject.IsNull() )
myShape->SetOwner( myObject );
if ( !myObject.IsNull() )
myShape->SetOwner( myObject );