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