Salome HOME
bos #24400 [CEA] Option in SALOME for not storing in med files the indices (number...
[modules/smesh.git] / doc / salome / gui / SMESH / input / mesh_preferences.rst
1 .. _mesh_preferences_page:
2
3 ****************
4 Mesh preferences
5 ****************
6
7 In the Mesh module you can set mesh preferences, which can be used right now or in later sessions with this module according to the preferences.
8
9 General Preferences
10 ###################
11
12 .. image:: ../images/pref21.png
13         :align: center
14
15 .. _automatic_update_pref:
16
17 * **Automatic Update**
18
19   * **Automatic Update** - if activated, the mesh in your viewer will be automatically updated after it's computation, depending on values of additional preferences specified below.
20   * **Size limit (elements)** - allows specifying the maximum number of elements in the resulting mesh for which the automatic updating of the presentation is performed. This option affects only :ref:`Compute <compute_anchor>` operation. Zero value means "no limit". Default value is 500 000 mesh elements. 
21   * **Incremental limit check** - if activated, the mesh size limit check is not applied to the total number of elements in the resulting mesh, it is applied iteratively to each entity type in the following order: 0D elements, edges, faces, volumes, balls. At each step the number of entities of a certain type is added to the total number of elements computed at the previous step - if the resulting number of elements does not exceed the size limit, the entities of this type are shown, otherwise the user is warned that some entities are not shown.
22
23 .. _display_mode_pref:
24
25 * **Display**
26
27   * **Fit All upon Show Only** - if activated, *Show Only* command additionally performs *Fit All* command.
28
29   * **Default display mode** - allows to set Wireframe, Shading, Nodes or Shrink :ref:`presentation mode <display_mode_page>` as default.
30
31 .. _quadratic_2d_mode_pref:
32
33 * **Representation of the 2D quadratic elements**
34
35   * **Default mode of the 2D quadratic elements** - allows to select either *Lines* or *Arcs* as a default :ref:`representation <quadratic_2d_mode>` of 1D and 2D :ref:`quadratic elements <adding_quadratic_elements_page>`.
36   * **Maximum Angle** - maximum deviation angle used by the application to build arcs.
37
38 * **Quality Controls**
39
40   * **Display entity** - if activated, only currently :ref:`controlled <quality_page>` entities are displayed in the viewer and other entities are temporarily hidden. For example if you activate :ref:`Length <length_page>` quality control, which controls the length of mesh segments, then only mesh segments are displayed and faces and volumes are hidden. 
41   * **Use precision** - if activated, all quality controls will be computed at precision defined by **Number of digits after point** - as integers by default.
42
43 .. _dbl_nodes_tol_pref:
44
45   * **Double nodes tolerance** - defines the maximal distance between two mesh nodes, at which they are considered coincident by :ref:`Double nodes <double_nodes_control_page>` quality control. This value is also used in :ref:`Quality Info <mesh_quality_info_anchor>` tab page of :ref:`Mesh Information <mesh_infos_page>` dialog.
46
47 * **Mesh export**
48
49 .. _export_auto_groups_pref:
50
51   * **Automatically create groups for MED export** - defines a default state of a corresponding check-box in :ref:`MED Export <export_auto_groups>` dialog.
52
53 .. _group_export_warning_pref:
54
55   * **Show warning when exporting group** - if activated, a warning is displayed when exporting a group.
56
57 .. _med_export_numbers_pref:
58
59   * **Save cell/node numbers to MED file** - if activated, optional node and cell numbers are saved to MED file.
60
61 .. _medexport_z_tolerance_pref:
62
63   * **Z tolerance for MED export** - defines Z tolerance in :ref:`MED Export <export_auto_groups>` dialog.
64
65 .. _show_comp_result_pref:
66
67 * **Mesh computation**
68
69   * **Show a computation result notification** - allows to select the notification mode about a :ref:`mesh computation <compute_anchor>` result. There are 3 possible modes:
70                 * **Never** - not to show the :ref:`result dialog <meshing_result_anchor>` at all;
71                 * **Errors only** - the result dialog will be shown if there were some errors during a mesh computation;
72                 * **Always** - show the result dialog after each mesh computation. This is a default mode.
73
74 .. _mesh_information_pref:
75
76 * **Mesh information**
77
78   * **Mesh element information** - allows changing the way :ref:`mesh element information <mesh_element_info_anchor>` is shown:
79                 * **Simple** - as a plain text
80                 * **Tree** - in a tree-like form
81
82 .. _nb_nodes_limit_pref:
83
84   * **Automatic nodes compute limit** - allows defining the size limit for the :ref:`mesh groups <mesh_addition_info_group_anchor>` 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.
85
86 .. _auto_control_limit_pref:
87
88   * **Automatic controls compute limit** - allows defining a maximal number of mesh elements for which the quality controls in the :ref:`Quality Information <mesh_quality_info_anchor>` tab page are calculated automatically. If the number of mesh elements exceeds the value set in the preferences, it is necessary to press **Compute** button explicitly to calculate a quality measure. Zero value means "no limit". By default the value is set to 3 000 mesh elements.
89
90 .. _group_detail_info_pref:
91
92   * **Show details on groups in element information tab** - when this option is switched off (default), only the names of groups, to which the node or element belongs, are shown in the :ref:`Element Info <mesh_element_info_anchor>` tab of "Mesh Information" dialog box. If this option is switched on, the detailed information on groups is shown.
93   * **Dump base information** - allows dumping base mesh information to the file, see :ref:`Mesh Information <dump_mesh_infos>`.
94   * **Dump element information** - allows dumping element information to the file, see :ref:`Mesh Information <dump_mesh_infos>`.
95   * **Dump additional information** - allows dumping additional mesh information to the file, see :ref:`Mesh Information <dump_mesh_infos>`.
96   * **Dump controls information** - allows dumping quality mesh information to the file, see :ref:`Mesh Information <dump_mesh_infos>`.
97
98 * **Automatic Parameters**
99
100 .. _diagonal_size_ratio_pref:
101         
102   * **Ratio Bounding Box Diagonal / Max Size** - defines the ratio between the bounding box of the meshed object and the Max Size of segments. It is used as a default value of :ref:`1D Meshing Hypotheses <a1d_meshing_hypo_page>` defining length of segments, especially by :ref:`Max Size <max_length_anchor>` hypothesis.
103
104 .. _nb_segments_pref:
105
106   * **Default Number of Segments** - defines the default number of segments in :ref:`Number of Segments <number_of_segments_anchor>` hypothesis.
107
108 .. _use_meshgems_pref:
109
110   * **Use MeshGems meshers when assigning set of hypotheses** - if activated, commercial meshers of MeshGems suite are used instead of a free mesher NETGEN when assigning a set of hypotheses in Create Mesh/Sub-mesh dialog.
111   
112 * **Mesh loading**
113
114   * **No mesh loading from study file at hypothesis modification** - if activated, the mesh data will not be loaded from the study file when a hypothesis is modified. This allows saving time by omitting loading data of a large mesh that is planned to be recomputed with other parameters.
115
116 * **Input fields precision** - allows to adjust input precision of different parameters. The semantics of the precision values is described in detail in **Using input widgets** chapter of GUI documentation (Introduction to Salome Platform / Introduction to GUI / Using input widgets). In brief: **positive** precision value is the maximum allowed number of digits after the decimal point in the fixed-point format; **negative** precision value is the maximum allowed number of significant digits in mantissa in either the fixed-point or scientific format.
117
118   * **Length precision** - allows to adjust input precision of coordinates and dimensions.
119   * **Angular precision** - allows to adjust input precision of angles.
120   * **Length tolerance precision** - allows to adjust input precision of tolerance of coordinates and dimensions.
121   * **Parametric precision** - allows to adjust input precision of parametric values.
122   * **Area precision** - allows to adjust input precision of mesh element area.
123   * **Volume precision** - allows to adjust input precision of mesh element volume.
124
125 * **Preview**
126
127 .. _chunk_size_pref:
128
129   * **Sub-shapes preview chunk size** - allows to limit the number of previewed sub-shapes shown in the hypotheses creation dialog boxes, for example "Reverse Edges" parameter of :ref:`Number of Segments <number_of_segments_anchor>` hypothesis.
130
131 * **Python Dump**
132
133   * **Historical python dump** - allows switching between *Historical* and *Snapshot* dump mode:
134
135     * In *Historical* mode, Python Dump script includes all commands performed by SMESH engine.
136     * In *Snapshot* mode, the commands relating to objects removed from the Study as well as the commands not influencing the current state of meshes are excluded from the script.
137
138 .. _mesh_tab_preferences:
139
140 Mesh Preferences
141 ################
142
143 **Mesh** tab page contains parameters defining the way the mesh is displayed in the 3D Viewer.
144
145 .. image:: ../images/pref22.png
146         :align: center
147
148 * **Nodes** - allows to define default parameters for nodes, which will be applied for a newly created mesh only. Existing meshes can be customized using :ref:`Properties dialog box <colors_size_page>` available from the context menu of a mesh.
149
150   * **Color** -  allows to select the color of nodes. Click on the downward arrow near the colored line to access to the **Select Color** dialog box.
151   * **Type of marker** - allows to define the shape of nodes.
152   * **Scale of marker** - allows to define the size of nodes.
153
154 * **Elements** - allows to define default parameters for different elements, which will be applied to a newly created mesh only. Existing meshes can be customized using :ref:`Properties dialog box <colors_size_page>` available from the context menu of a mesh.
155
156   * **Surface color**  - allows to select the surface color of 2D elements (seen in Shading mode). Click on the downward arrow near the colored line to access to the **Select Color** dialog box.
157   * **Back surface color** - allows to select the back surface color of 2D elements. This is useful to differ 2d elements with reversed orientation. Use the slider to select the color generated basing on the **Surface color** by changing its brightness and saturation.
158   * **Volume color** - allows to select the surface color of 3D elements (seen in Shading mode).
159   * **Reversed volume color** - allows to select the surface color of reversed 3D elements. Use the slider to select the color generated basing on the **Volume color** by changing its brightness and saturation.
160   * **0D element color** - allows to choose color of 0D mesh elements.
161   * **Ball color** - allows to choose color of discrete mesh elements (balls).
162   * **Outline color** - allows to select the color of element borders.
163   * **Wireframe color** - allows to select the color of borders of elements in the wireframe mode.
164   * **Preview color** - allows to select the preview color of the elements, which is used while :ref:`manual creation of elements <adding_nodes_and_elements_page>`.
165   * **Size of 0D elements** - specifies default size of 0D elements.
166   * **Size of ball elements** - specifies default size of discrete elements (balls).
167   * **Scale factor of ball elements** - specifies default scale factor of discrete elements (balls) allowing to adjust their size in the Viewer.
168   * **Line width** - allows to define the width of 1D elements (segments).
169   * **Outline width** - allows to define the width of borders of 2D and 3D elements (shown in the Shading mode).
170   * **Shrink coef.** - allows to define relative size of a shrunk element compared a non-shrunk element in percents in the shrink mode.
171
172 * **Groups**
173
174   * **Names color** - specifies color of group names to be used in the 3D viewer.
175   * **Default color** - specifies the default group color, which is used to create a new mesh group (see :ref:`Create Group dialog box <creating_groups_page>`).
176
177 * **Numbering** allows to define properties of numbering functionality:
178
179   * **Nodes** - specifies text properties of nodes numbering (font family, size, attributes, color).
180   * **Elements** - same for elements.
181
182 * **Orientation of Faces** - allows to define default properties of orientation vectors. These preferences will be applied to the newly created meshes only; properties of existing meshes can be customized using :ref:`Properties dialog box <colors_size_page>` available from the context menu of a mesh.
183
184   * **Color** - allows to define the color of orientation vectors;
185   * **Scale** - allows to define the size of orientation vectors;
186   * **3D Vector** - allows to choose between 2D planar and 3D vectors.
187
188 Selection Preferences
189 #####################
190
191 .. image:: ../images/pref23.png
192         :align: center
193
194 * **Selection** - performed with mouse-indexing (preselection) and left-clicking on an object, whose appearance changes as defined in the **Preferences**.
195
196   * **Object color** - allows to select the color of mesh (edges and borders of meshes) of the selected entity. Click on the colored line to access to the **Select Color** dialog box.
197   * **Element color** - allows to select the color of surface of selected elements (seen in Shading mode). Click on the colored line to access to the **Select Color** dialog box.
198
199 * **Preselection** - performed with mouse-indexing on an object, whose appearance changes as defined in the **Preferences**.
200
201   * **Highlight color** - allows to select the color of mesh (edges and borders of meshes) of the entity. Click on the colored line to access to the **Select Color** dialog box.
202
203 * **Precision** - in this menu you can set the value of precision used for **Nodes**, **Elements** and **Objects**.
204
205 Scalar Bar Preferences
206 ######################
207
208 .. image:: ../images/pref24.png
209         :align: center
210
211 .. note::
212         The following settings are default and will be applied to a newly created mesh only. Existing meshes can be customized using local :ref:`Scalar Bar Properties dialog box <scalar_bar_dlg>` available from the context menu of a mesh.
213
214 * **Font** - in this menu you can set type, face and color of the font of **Title** and **Labels**.
215
216 * **Colors & Labels** - in this menu you can set the **number of colors** and the **number of labels** in use.
217
218 * **Orientation** - here you can choose between vertical and horizontal orientation of the **Scalar Bar**.
219
220 * **Origin & Size Vertical & Horizontal** - allows to define placement (**X** and **Y**) and lookout (**Width** and **Height**) of Scalar Bars.
221         * **X** - abscissa of the point of origin (from the left side).
222         * **Y** - ordinate of the origin of the bar (from the bottom).
223
224 * **Distribution** in this menu you can Show/Hide distribution histogram of the values of the **Scalar Bar** and specify the **Coloring Type** of the histogram:
225         * **Multicolor** - the histogram is colored as **Scalar Bar**.
226         * **Monocolor** - the histogram is colored as selected with **Distribution color** selector.
227
228