diff --git a/doc/salome/gui/GEOM/input/import_export.doc b/doc/salome/gui/GEOM/input/import_export.doc
index cedbe93d6..296c68b22 100644
--- a/doc/salome/gui/GEOM/input/import_export.doc
+++ b/doc/salome/gui/GEOM/input/import_export.doc
@@ -23,10 +23,9 @@ the module and its contents (geometrical object) will be displayed in
the Object Browser.
\note If the selected file is in IGES format and the length is not
-expressed in meters, it will be sussested to scale the model into the
+expressed in meters, it will be suggested to scale the model into the
metric system:
-y types (solid, face, edge and
-vertex) for all named shapes
+
\image html iges_unit.png
\par
diff --git a/doc/salome/gui/GEOM/input/remove_extra_edges_operation.doc b/doc/salome/gui/GEOM/input/remove_extra_edges_operation.doc
index 401e200c3..4988009e6 100644
--- a/doc/salome/gui/GEOM/input/remove_extra_edges_operation.doc
+++ b/doc/salome/gui/GEOM/input/remove_extra_edges_operation.doc
@@ -7,8 +7,8 @@
\n This operation removes all seam and degenerated edges from a given
shape. Its main purpose is healing of solids and compounds to obtain
hexahedral solids and compounds of hexahedral solids.
-However, there is an option to unite all faces, sharing one
-surface, which allows obaining not only hexahedral solids.
+However, there is an option to unite all faces sharing one
+surface, which produces not only hexahedral solids.
\n TUI Command: geompy.RemoveExtraEdges(theShape,theOptimumNbFaces),
where theShape is a compound or a single solid
diff --git a/src/BasicGUI/BasicGUI_CurveDlg.cxx b/src/BasicGUI/BasicGUI_CurveDlg.cxx
index 05a7baf26..0212cdb31 100644
--- a/src/BasicGUI/BasicGUI_CurveDlg.cxx
+++ b/src/BasicGUI/BasicGUI_CurveDlg.cxx
@@ -129,6 +129,7 @@ void BasicGUI_CurveDlg::Init()
SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) ) ;
initName( tr( "GEOM_CURVE" ) );
+ resize(100,100);
ConstructorsClicked( 0 );
}
diff --git a/src/BasicGUI/BasicGUI_EllipseDlg.cxx b/src/BasicGUI/BasicGUI_EllipseDlg.cxx
index dee60ede9..3faa71277 100644
--- a/src/BasicGUI/BasicGUI_EllipseDlg.cxx
+++ b/src/BasicGUI/BasicGUI_EllipseDlg.cxx
@@ -157,6 +157,7 @@ void BasicGUI_EllipseDlg::Init()
initName( tr( "GEOM_ELLIPSE" ) );
+ resize(100,100);
displayPreview();
}
diff --git a/src/BooleanGUI/BooleanGUI_Dialog.cxx b/src/BooleanGUI/BooleanGUI_Dialog.cxx
index 85e1f1990..7b1e3df5a 100644
--- a/src/BooleanGUI/BooleanGUI_Dialog.cxx
+++ b/src/BooleanGUI/BooleanGUI_Dialog.cxx
@@ -161,6 +161,7 @@ void BooleanGUI_Dialog::Init()
myGroup->PushButton1->click();
SelectionIntoArgument();
+ resize(100,100);
}
//=================================================================================
diff --git a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx
index af81a31bb..45e27d2e7 100644
--- a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx
+++ b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx
@@ -143,7 +143,7 @@ void EntityGUI_SubShapeDlg::Init()
SIGNAL( currentSelectionChanged( )), this, SLOT( SelectionIntoArgument() ) );
updateButtonState();
-
+ resize(100,100);
SelectionIntoArgument();
}
diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx
index 2ec87cbcf..436287cff 100644
--- a/src/GEOM/GEOM_Engine.cxx
+++ b/src/GEOM/GEOM_Engine.cxx
@@ -18,7 +18,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
+
#ifdef WNT
#pragma warning( disable:4786 )
#endif
@@ -248,17 +248,12 @@ Handle(GEOM_Object) GEOM_Engine::AddObject(int theDocID, int theType)
// if this label has been freed (object deleted)
bool useExisting = false;
TDF_Label aChild;
- if (!_lastCleared.IsNull()) {
- if (_lastCleared.Root() == aDoc->Main().Root()) {
+ if (_freeLabels.find(theDocID) != _freeLabels.end()) {
+ std::list& aFreeLabels = _freeLabels[theDocID];
+ if (!aFreeLabels.empty()) {
useExisting = true;
- aChild = _lastCleared;
- // 0020229: if next label exists and is empty, try to reuse it
- Standard_Integer aNextTag = aChild.Tag() + 1;
- TDF_Label aNextL = aDoc->Main().FindChild(aNextTag, Standard_False);
- if (!aNextL.IsNull() && !aNextL.HasAttribute())
- _lastCleared = aNextL;
- else
- _lastCleared.Nullify();
+ aChild = aFreeLabels.front();
+ aFreeLabels.pop_front();
}
}
if (!useExisting) {
@@ -294,6 +289,7 @@ Handle(GEOM_Object) GEOM_Engine::AddSubShape(Handle(GEOM_Object) theMainShape,
// if this label has been freed (object deleted)
bool useExisting = false;
TDF_Label aChild;
+ /*
if (!_lastCleared.IsNull()) {
if (_lastCleared.Root() == aDoc->Main().Root()) {
useExisting = true;
@@ -307,6 +303,16 @@ Handle(GEOM_Object) GEOM_Engine::AddSubShape(Handle(GEOM_Object) theMainShape,
_lastCleared.Nullify();
}
}
+ */
+ int aDocID = theMainShape->GetDocID();
+ if (_freeLabels.find(aDocID) != _freeLabels.end()) {
+ std::list& aFreeLabels = _freeLabels[aDocID];
+ if (!aFreeLabels.empty()) {
+ useExisting = true;
+ aChild = aFreeLabels.front();
+ aFreeLabels.pop_front();
+ }
+ }
if (!useExisting) {
// create new label
aChild = TDF_TagSource::NewChild(aDoc->Main());
@@ -366,6 +372,8 @@ bool GEOM_Engine::RemoveObject(Handle(GEOM_Object) theObject)
{
if (!theObject) return false;
+ int aDocID = theObject->GetDocID();
+
//Remove an object from the map of available objects
TCollection_AsciiString anID = BuildIDFromObject(theObject);
if (_objects.IsBound(anID)) _objects.UnBind(anID);
@@ -380,7 +388,10 @@ bool GEOM_Engine::RemoveObject(Handle(GEOM_Object) theObject)
TDF_Label aLabel = theObject->GetEntry();
aLabel.ForgetAllAttributes(Standard_True);
- _lastCleared = aLabel;
+
+ // Remember the label to reuse it then
+ std::list& aFreeLabels = _freeLabels[aDocID];
+ aFreeLabels.push_back(aLabel);
theObject.Nullify();
@@ -464,7 +475,11 @@ void GEOM_Engine::Close(int theDocID)
}
for (Standard_Integer i=1; i<=aSeq.Length(); i++) _objects.UnBind(aSeq.Value(i));
- _lastCleared.Nullify();
+ // Forget free labels for this document
+ TFreeLabelsList::iterator anIt = _freeLabels.find(theDocID);
+ if (anIt != _freeLabels.end()) {
+ _freeLabels.erase(anIt);
+ }
_mapIDDocument.UnBind(theDocID);
_OCAFApp->Close(aDoc);
diff --git a/src/GEOM/GEOM_Engine.hxx b/src/GEOM/GEOM_Engine.hxx
index 5a45bdc93..c901123b6 100644
--- a/src/GEOM/GEOM_Engine.hxx
+++ b/src/GEOM/GEOM_Engine.hxx
@@ -18,7 +18,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
+
#ifndef _GEOM_Engine_HXX_
#define _GEOM_Engine_HXX_
@@ -34,6 +34,7 @@
#include
#include