0021858: EDF 2171 SMESH : Add an information about the groups an element or node belongs to

This commit is contained in:
vsr 2012-12-20 15:29:39 +00:00
parent 5e7fae6a20
commit 65f79df2af
11 changed files with 66 additions and 22 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

@ -10,8 +10,8 @@ group in the <b>Object Browser</b> and invoke <b>Mesh Information</b>
item from the \b Mesh menu or click <em>"Mesh Information"</em> button
in the toolbar.
\image html image49.png
<center><em>"Mesh Information" button</em></center>
<center>\image html image49.png
<em>"Mesh Information" button</em></center>
The <b>Mesh Information</b> dialog box provides three tab pages:
- <b>\ref advanced_mesh_infos_anchor "Base Info"</b> - to show base
@ -27,28 +27,50 @@ for the selected mesh, sub-mesh or group object.
The <b>Base Info</b> 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
<center><em>"Base Info" page</em></center>
<center>\image html advanced_mesh_infos.png
<em>"Base Info" page</em></center>
\anchor mesh_element_info_anchor
<h2>Mesh Element Information</h2>
The <b>Element Info</b> tab page of the dialog box gives basic
information about the type, coordinates and connectivity of the
selected mesh node or element.
The <b>Element Info</b> tab page of the dialog box gives detail
information about selected mesh node(s) or element(s), namely:
\image html eleminfo1.png
<center><em>"Element Info" page, node information</em></center>
- 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)
<center>\image html eleminfo1.png
<em>"Element Info" page, node information</em></center>
<br>
\image html eleminfo2.png
<center><em>"Element Info" page, element information</em></center>
- 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)
<center>\image html eleminfo2.png
<em>"Element Info" page, element information</em></center>
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
<h2>Additional Information</h2>
@ -64,8 +86,8 @@ For a mesh object, the following information is shown:
- Groups
- Sub-meshes
\image html addinfo_mesh.png
<center><em>"Additional Info" page, mesh information</em></center>
<center>\image html addinfo_mesh.png
<em>"Additional Info" page, mesh information</em></center>
<br>
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
<center><em>"Additional Info" page, sub-mesh information</em></center>
<center>\image html addinfo_submesh.png
<em>"Additional Info" page, sub-mesh information</em></center>
<br>
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
<center><em>"Additional Info" page, group information</em></center>
<center>\image html addinfo_group.png
<em>"Additional Info" page, group information</em></center>
<br>
\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 <b>Mesh Information</b> via a TUI script, the information is
displayed in the Python Console.
<b>See the</b> \ref tui_viewing_mesh_infos "TUI Example".

View File

@ -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.
</li></ul>
</li>
<li><b>Show details on groups in element information tab</b> - 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.</li>
<li><b>Dump base information</b> - Dump base mesh information to the
file, see \ref mesh_infos_page.</li>
<li><b>Dump element information</b> - Dump element information to the
file, see \ref mesh_infos_page.</li>
<li><b>Dump additional information</b> - Dump additional mesh
information to the file, see \ref mesh_infos_page.</li>
</ul>
<li><b>Automatic Parameters</b></li>
<ul>
<li><b>Ratio Bounding Box Diagonal / Max Size</b> - this parameter is

View File

@ -45,6 +45,9 @@
#include "SMESH_Controls.hxx"
#include "SMDSAbs_ElementType.hxx"
#include <SALOMEconfig.h>
#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,

View File

@ -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: