0021858: EDF 2171 SMESH : Add an information about the groups an element or node belongs to
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 85 KiB |
@ -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
|
item from the \b Mesh menu or click <em>"Mesh Information"</em> button
|
||||||
in the toolbar.
|
in the toolbar.
|
||||||
|
|
||||||
\image html image49.png
|
<center>\image html image49.png
|
||||||
<center><em>"Mesh Information" button</em></center>
|
<em>"Mesh Information" button</em></center>
|
||||||
|
|
||||||
The <b>Mesh Information</b> dialog box provides three tab pages:
|
The <b>Mesh Information</b> dialog box provides three tab pages:
|
||||||
- <b>\ref advanced_mesh_infos_anchor "Base Info"</b> - to show base
|
- <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
|
The <b>Base Info</b> tab page of the dialog box provides general
|
||||||
information on the selected object - mesh, sub-mesh or mesh group:
|
information on the selected object - mesh, sub-mesh or mesh group:
|
||||||
name, type, total number of nodes and elements separately for each
|
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>\image html advanced_mesh_infos.png
|
||||||
<center><em>"Base Info" page</em></center>
|
<em>"Base Info" page</em></center>
|
||||||
|
|
||||||
\anchor mesh_element_info_anchor
|
\anchor mesh_element_info_anchor
|
||||||
<h2>Mesh Element Information</h2>
|
<h2>Mesh Element Information</h2>
|
||||||
|
|
||||||
The <b>Element Info</b> tab page of the dialog box gives basic
|
The <b>Element Info</b> tab page of the dialog box gives detail
|
||||||
information about the type, coordinates and connectivity of the
|
information about selected mesh node(s) or element(s), namely:
|
||||||
selected mesh node or element.
|
|
||||||
|
|
||||||
\image html eleminfo1.png
|
- For node:
|
||||||
<center><em>"Element Info" page, node information</em></center>
|
- 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>
|
<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
|
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.
|
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
|
\anchor mesh_addition_info_anchor
|
||||||
<h2>Additional Information</h2>
|
<h2>Additional Information</h2>
|
||||||
|
|
||||||
@ -64,8 +86,8 @@ For a mesh object, the following information is shown:
|
|||||||
- Groups
|
- Groups
|
||||||
- Sub-meshes
|
- Sub-meshes
|
||||||
|
|
||||||
\image html addinfo_mesh.png
|
<center>\image html addinfo_mesh.png
|
||||||
<center><em>"Additional Info" page, mesh information</em></center>
|
<em>"Additional Info" page, mesh information</em></center>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
For a sub-mesh object, the following information is shown:
|
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
|
- Parent mesh
|
||||||
- Shape
|
- Shape
|
||||||
|
|
||||||
\image html addinfo_submesh.png
|
<center>\image html addinfo_submesh.png
|
||||||
<center><em>"Additional Info" page, sub-mesh information</em></center>
|
<em>"Additional Info" page, sub-mesh information</em></center>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
For a group object, the following information is shown:
|
For a group object, the following information is shown:
|
||||||
@ -86,8 +108,8 @@ For a group object, the following information is shown:
|
|||||||
- Color
|
- Color
|
||||||
- Number of underlying nodes (for non-nodal groups)
|
- Number of underlying nodes (for non-nodal groups)
|
||||||
|
|
||||||
\image html addinfo_group.png
|
<center>\image html addinfo_group.png
|
||||||
<center><em>"Additional Info" page, group information</em></center>
|
<em>"Additional Info" page, group information</em></center>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
\note For the performance reasons, the number of underlying nodes is
|
\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"
|
the "Automatic nodes compute limit" set via the "Mesh information"
|
||||||
preferences (zero value means no limit).
|
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
|
In case you get <b>Mesh Information</b> via a TUI script, the information is
|
||||||
displayed in the Python Console.
|
displayed in the Python Console.
|
||||||
<b>See the</b> \ref tui_viewing_mesh_infos "TUI Example".
|
<b>See the</b> \ref tui_viewing_mesh_infos "TUI Example".
|
||||||
|
@ -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,
|
automatically. If the group size exceeds the value set in the preferences,
|
||||||
the user will have to press \em Compute button explicitly. Zero value
|
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.
|
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>
|
<li><b>Automatic Parameters</b></li>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b>Ratio Bounding Box Diagonal / Max Size</b> - this parameter is
|
<li><b>Ratio Bounding Box Diagonal / Max Size</b> - this parameter is
|
||||||
|
@ -45,6 +45,9 @@
|
|||||||
#include "SMESH_Controls.hxx"
|
#include "SMESH_Controls.hxx"
|
||||||
#include "SMDSAbs_ElementType.hxx"
|
#include "SMDSAbs_ElementType.hxx"
|
||||||
|
|
||||||
|
#include <SALOMEconfig.h>
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_Mesh)
|
||||||
|
|
||||||
class SMDS_Mesh;
|
class SMDS_Mesh;
|
||||||
class vtkUnstructuredGrid;
|
class vtkUnstructuredGrid;
|
||||||
|
|
||||||
@ -62,6 +65,7 @@ public:
|
|||||||
|
|
||||||
virtual int GetNbEntities( const SMDSAbs_ElementType theType) const = 0;
|
virtual int GetNbEntities( const SMDSAbs_ElementType theType) const = 0;
|
||||||
virtual SMDS_Mesh* GetMesh() const = 0;
|
virtual SMDS_Mesh* GetMesh() const = 0;
|
||||||
|
virtual SMESH::SMESH_Mesh_ptr GetMeshServer() = 0;
|
||||||
|
|
||||||
virtual bool GetEdgeNodes( const int theElemId,
|
virtual bool GetEdgeNodes( const int theElemId,
|
||||||
const int theEdgeNum,
|
const int theEdgeNum,
|
||||||
|
@ -70,6 +70,7 @@ public:
|
|||||||
virtual int GetEntities( const SMDSAbs_ElementType, TEntityList& ) const = 0;
|
virtual int GetEntities( const SMDSAbs_ElementType, TEntityList& ) const = 0;
|
||||||
virtual bool IsNodePrs() const = 0;
|
virtual bool IsNodePrs() const = 0;
|
||||||
virtual SMDS_Mesh* GetMesh() const = 0;
|
virtual SMDS_Mesh* GetMesh() const = 0;
|
||||||
|
virtual SMESH::SMESH_Mesh_ptr GetMeshServer() = 0;
|
||||||
|
|
||||||
virtual bool IsValid() const;
|
virtual bool IsValid() const;
|
||||||
|
|
||||||
@ -135,10 +136,11 @@ public:
|
|||||||
|
|
||||||
virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor );
|
virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor );
|
||||||
|
|
||||||
SMESH::SMESH_Mesh_ptr GetMeshServer() { return myClient.GetMeshServer(); }
|
virtual SMESH::SMESH_Mesh_ptr GetMeshServer() { return myClient.GetMeshServer(); }
|
||||||
SMDS_Mesh* GetMesh() const { return myClient.GetMesh(); }
|
virtual SMDS_Mesh* GetMesh() const { return myClient.GetMesh(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
SMESH_Client myClient;
|
SMESH_Client myClient;
|
||||||
vtkUnstructuredGrid* myEmptyGrid;
|
vtkUnstructuredGrid* myEmptyGrid;
|
||||||
};
|
};
|
||||||
@ -161,6 +163,7 @@ public:
|
|||||||
virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor );
|
virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor );
|
||||||
virtual int GetElemDimension( const int theObjId );
|
virtual int GetElemDimension( const int theObjId );
|
||||||
virtual SMDS_Mesh* GetMesh() const { return myMeshObj->GetMesh(); }
|
virtual SMDS_Mesh* GetMesh() const { return myMeshObj->GetMesh(); }
|
||||||
|
virtual SMESH::SMESH_Mesh_ptr GetMeshServer() { return myMeshObj->GetMeshServer(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|