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