diff --git a/doc/salome/gui/SMESH/images/addinfo_group.png b/doc/salome/gui/SMESH/images/addinfo_group.png
index 9f26c9af8..c9ac74a06 100644
Binary files a/doc/salome/gui/SMESH/images/addinfo_group.png and b/doc/salome/gui/SMESH/images/addinfo_group.png differ
diff --git a/doc/salome/gui/SMESH/images/addinfo_mesh.png b/doc/salome/gui/SMESH/images/addinfo_mesh.png
index 91fbc38ad..42d88c638 100644
Binary files a/doc/salome/gui/SMESH/images/addinfo_mesh.png and b/doc/salome/gui/SMESH/images/addinfo_mesh.png differ
diff --git a/doc/salome/gui/SMESH/images/addinfo_submesh.png b/doc/salome/gui/SMESH/images/addinfo_submesh.png
index 4811c9902..f41ba2904 100644
Binary files a/doc/salome/gui/SMESH/images/addinfo_submesh.png and b/doc/salome/gui/SMESH/images/addinfo_submesh.png differ
diff --git a/doc/salome/gui/SMESH/images/advanced_mesh_infos.png b/doc/salome/gui/SMESH/images/advanced_mesh_infos.png
index ddd305f58..3471144a1 100755
Binary files a/doc/salome/gui/SMESH/images/advanced_mesh_infos.png and b/doc/salome/gui/SMESH/images/advanced_mesh_infos.png differ
diff --git a/doc/salome/gui/SMESH/images/eleminfo1.png b/doc/salome/gui/SMESH/images/eleminfo1.png
index 3cd439b76..3e1888ff2 100755
Binary files a/doc/salome/gui/SMESH/images/eleminfo1.png and b/doc/salome/gui/SMESH/images/eleminfo1.png differ
diff --git a/doc/salome/gui/SMESH/images/eleminfo2.png b/doc/salome/gui/SMESH/images/eleminfo2.png
index 54fe12df8..ea73500bd 100755
Binary files a/doc/salome/gui/SMESH/images/eleminfo2.png and b/doc/salome/gui/SMESH/images/eleminfo2.png differ
diff --git a/doc/salome/gui/SMESH/images/pref21.png b/doc/salome/gui/SMESH/images/pref21.png
index d30add416..d39efb580 100755
Binary files a/doc/salome/gui/SMESH/images/pref21.png and b/doc/salome/gui/SMESH/images/pref21.png differ
diff --git a/doc/salome/gui/SMESH/input/mesh_infos.doc b/doc/salome/gui/SMESH/input/mesh_infos.doc
index 06a02d2cc..5c526af67 100644
--- a/doc/salome/gui/SMESH/input/mesh_infos.doc
+++ b/doc/salome/gui/SMESH/input/mesh_infos.doc
@@ -10,8 +10,8 @@ group in the Object Browser and invoke Mesh Information
item from the \b Mesh menu or click "Mesh Information" button
in the toolbar.
-\image html image49.png
-
"Mesh Information" button
+\image html image49.png
+"Mesh Information" button
The Mesh Information dialog box provides three tab pages:
- \ref advanced_mesh_infos_anchor "Base Info" - to show base
@@ -27,28 +27,50 @@ for the selected mesh, sub-mesh or group object.
The Base Info tab page of the dialog box provides general
information on the selected object - mesh, sub-mesh or mesh group:
name, type, total number of nodes and elements separately for each
-type: 0D elements, edges, faces and volumes.
+type: 0D elements, edges, faces, volumes, balls.
-\image html advanced_mesh_infos.png
-"Base Info" page
+\image html advanced_mesh_infos.png
+"Base Info" page
\anchor mesh_element_info_anchor
Mesh Element Information
-The Element Info tab page of the dialog box gives basic
-information about the type, coordinates and connectivity of the
-selected mesh node or element.
+The Element Info tab page of the dialog box gives detail
+information about selected mesh node(s) or element(s), namely:
-\image html eleminfo1.png
-"Element Info" page, node information
+- For node:
+ - Node ID
+ - Coordinates (X, Y, Z)
+ - Connectivity information (connected elements)
+ - Position on a shape (for meshes built on geometry)
+ - Groups information (names of groups the node belongs to)
+
+\image html eleminfo1.png
+"Element Info" page, node information
-\image html eleminfo2.png
-"Element Info" page, element information
+
+- For element:
+ - Element ID
+ - Type (triangle, quadrangle, etc...)
+ - Gravity center (X, Y, Z coordinates)
+ - Connectivity information (connected nodes)
+ - Quality controls (area, aspect ration, volume, etc)
+ - Position on a shape (for meshes built on geometry)
+ - Groups information (names of groups the element belongs to)
+
+\image html eleminfo2.png
+"Element Info" page, element information
The use can either input the ID of a node or element he wants to
-analyze directly in the dialog box or select the node or element in
+analyze directly in the dialog box or select the node(s) or element(s) in
the 3D viewer.
+\note The information about the groups, the node or element belongs
+to, can be shown in short or detail form. By default, for performance
+reasons, this information is show in short form (group names
+only). Detail information on groups can be switched on via the user
+preferences, see \ref mesh_preferences_page.
+
\anchor mesh_addition_info_anchor
Additional Information
@@ -64,8 +86,8 @@ For a mesh object, the following information is shown:
- Groups
- Sub-meshes
-\image html addinfo_mesh.png
-"Additional Info" page, mesh information
+\image html addinfo_mesh.png
+"Additional Info" page, mesh information
For a sub-mesh object, the following information is shown:
@@ -73,8 +95,8 @@ For a sub-mesh object, the following information is shown:
- Parent mesh
- Shape
-\image html addinfo_submesh.png
-"Additional Info" page, sub-mesh information
+\image html addinfo_submesh.png
+"Additional Info" page, sub-mesh information
For a group object, the following information is shown:
@@ -86,8 +108,8 @@ For a group object, the following information is shown:
- Color
- Number of underlying nodes (for non-nodal groups)
-\image html addinfo_group.png
-"Additional Info" page, group information
+\image html addinfo_group.png
+"Additional Info" page, group information
\note For the performance reasons, the number of underlying nodes is
@@ -97,6 +119,9 @@ automatically calculated if the size of the group does not exceed
the "Automatic nodes compute limit" set via the "Mesh information"
preferences (zero value means no limit).
+The button \b "Dump" allows printing the information displayed in the
+dialog box to the txt file.
+
In case you get Mesh Information via a TUI script, the information is
displayed in the Python Console.
See the \ref tui_viewing_mesh_infos "TUI Example".
diff --git a/doc/salome/gui/SMESH/input/mesh_preferences.doc b/doc/salome/gui/SMESH/input/mesh_preferences.doc
index d2a6eb41f..a9d7f87de 100644
--- a/doc/salome/gui/SMESH/input/mesh_preferences.doc
+++ b/doc/salome/gui/SMESH/input/mesh_preferences.doc
@@ -73,7 +73,19 @@ mesh groups for which the number of underlying nodes is calculated
automatically. If the group size exceeds the value set in the preferences,
the user will have to press \em Compute button explicitly. Zero value
means "no limit". By default the value is set to 100 000 mesh elements.
-
+
+Show details on groups in element information tab - when
+this option is switched off (default), only names of groups, the node
+or element belongs to, are shown in the \ref mesh_element_info_anchor "Info Tab"
+tab of "Mesh Information" dialog box. If this option is
+switched on, the detail information on groups is shown.
+Dump base information - Dump base mesh information to the
+file, see \ref mesh_infos_page.
+Dump element information - Dump element information to the
+file, see \ref mesh_infos_page.
+Dump additional information - Dump additional mesh
+information to the file, see \ref mesh_infos_page.
+
Automatic Parameters
- Ratio Bounding Box Diagonal / Max Size - this parameter is
diff --git a/src/OBJECT/SMESH_Object.h b/src/OBJECT/SMESH_Object.h
index 5ce10b850..ade792093 100644
--- a/src/OBJECT/SMESH_Object.h
+++ b/src/OBJECT/SMESH_Object.h
@@ -45,6 +45,9 @@
#include "SMESH_Controls.hxx"
#include "SMDSAbs_ElementType.hxx"
+#include
+#include CORBA_SERVER_HEADER(SMESH_Mesh)
+
class SMDS_Mesh;
class vtkUnstructuredGrid;
@@ -62,6 +65,7 @@ public:
virtual int GetNbEntities( const SMDSAbs_ElementType theType) const = 0;
virtual SMDS_Mesh* GetMesh() const = 0;
+ virtual SMESH::SMESH_Mesh_ptr GetMeshServer() = 0;
virtual bool GetEdgeNodes( const int theElemId,
const int theEdgeNum,
diff --git a/src/OBJECT/SMESH_ObjectDef.h b/src/OBJECT/SMESH_ObjectDef.h
index 4532a0197..56f754375 100644
--- a/src/OBJECT/SMESH_ObjectDef.h
+++ b/src/OBJECT/SMESH_ObjectDef.h
@@ -70,6 +70,7 @@ public:
virtual int GetEntities( const SMDSAbs_ElementType, TEntityList& ) const = 0;
virtual bool IsNodePrs() const = 0;
virtual SMDS_Mesh* GetMesh() const = 0;
+ virtual SMESH::SMESH_Mesh_ptr GetMeshServer() = 0;
virtual bool IsValid() const;
@@ -135,10 +136,11 @@ public:
virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor );
- SMESH::SMESH_Mesh_ptr GetMeshServer() { return myClient.GetMeshServer(); }
- SMDS_Mesh* GetMesh() const { return myClient.GetMesh(); }
+ virtual SMESH::SMESH_Mesh_ptr GetMeshServer() { return myClient.GetMeshServer(); }
+ virtual SMDS_Mesh* GetMesh() const { return myClient.GetMesh(); }
protected:
+
SMESH_Client myClient;
vtkUnstructuredGrid* myEmptyGrid;
};
@@ -161,6 +163,7 @@ public:
virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor );
virtual int GetElemDimension( const int theObjId );
virtual SMDS_Mesh* GetMesh() const { return myMeshObj->GetMesh(); }
+ virtual SMESH::SMESH_Mesh_ptr GetMeshServer() { return myMeshObj->GetMeshServer(); }
protected: