Salome HOME
7189ccc437a066e9038cedaa523cbeecccdbf3a3
[modules/smesh.git] / doc / salome / gui / SMESH / input / selection_filter_library.doc
1 /*!
2
3 \page selection_filter_library_page Selection filter library
4
5 \n Selection filter library allows creating and storing in files
6 the filters that can be later reused for operations on meshes. You can
7 access it from the Main Menu via <b>Tools / Selection filter library</b>.
8 It is also possible to save any filter by invoking the filter library
9 from \a Filter dialog launched from any mesh operation.
10
11 \image html selectionfilterlibrary.png
12
13 <b>Library file name</b> shows the path and the file name where your
14 filters will be stored. By clicking the <em>Browse</em> button you can
15 load an existing filter library.
16 \n <b>Names of filters</b> lists the filters created or uploaded for
17 the current study. You can \b Add or \b Delete filters.
18 \n In <b>Filter name</b> box you can specify the name for your
19 filter. By default it is prefixed with the corresponding entity type.
20
21 \anchor filtering_elements
22
23 When we use filters during group creation or another operation (by 
24 clicking <b>Set Filter</b> button in the corresponding dialog), the
25 dialog for setting filters looks as shown below.
26
27 \image html a-filteronfaces.png
28
29 The \b Add button creates a new criterion at the end of the list of
30 criteria. The \b Insert button creates a new criterion before the
31 selected criterion. The \b Remove button deletes the selected
32 criterion. The \b Clear button deletes all criteria.\n
33 If there is a choice of <b>Entity type</b> in the dialog, only
34 criteria of currently selected type are used to create or change a
35 filter, and criteria of hidden types (if were specified) are ignored.
36 \n Each <b>Entity type</b> has its specific list of criteria, however all
37 filters have common syntax. The <b>Threshold Value</b> should be specified 
38 for most criteria. For numerical criteria it is necessary to indicate if 
39 the found elements should be \b More, \b Less or \b Equal to this
40 \b Value. You can also reverse the sense of a criterion using \b Unary
41 operator \a Not and you should specify logical relations between
42 criteria using \b Binary operators \a Or and \a And.
43 \n Some criteria have the additional parameter of \b Tolerance.<br> 
44 Switching on <b>Insert filter in viewer</b> check-box limits
45 selection of elements in the Viewer to the current filter.
46 <br>
47 In the \b Source field you choose if the filter will be applied to
48 the whole \b Mesh, the <b>Initial Selection</b> or the <b>Current
49 Dialog</b>. If \b Mesh is chosen, the elements satisfying the filter
50 will be selected in the 3D Viewer. If <b> Initial Selection</b> is
51 chosen, the filter will be applied to the selected elements and the
52 elements rejected by the filter will be deselected. If <b>Current
53 Dialog</b> is chosen, the filter will be applied to the list of
54 elements in the current dialog and the elements rejected
55 by the filter will be removed from the list.
56 <br>
57 <b>Copy from...</b> button gives you a possibility to load an
58 existing filter from <b>Selection filter library</b> and <b>Add
59 to...</b> button gives you a possibility to save your current filter
60 in the Library.
61 <br>
62 <b>Note:</b> If the button <b>Apply and Close</b> is disabled, there
63 is no selected mesh in the Object Browser and the filter can not be
64 created. You have to select the mesh and the button will be enabled.
65
66 Some criteria are applicable to all <b>Entity types</b>:
67 <ul><li>
68 <b>Belong to Geom</b> selects entities whose all nodes lie on the
69 shape defined by <b>Threshold Value</b>. If the threshold shape is a
70 sub-shape of the main shape of the mesh the algorithm works faster, if
71 this is any other shape the algorithm works slower.
72 </li><li>
73 <b>Lying on Geom</b> selects entities whose at least one node
74 lies on the shape defined by the <b>Threshold Value</b>.
75 If the threshold shape is a sub-shape of the main shape of the mesh the
76 algorithm works faster, if this is any other
77 shape, the algorithm works slower.
78 </li><li>
79 <b>Belong to Mesh Group</b> selects entities included into the mesh group
80 defined by the <b>Threshold Value</b>.
81 </li><li>
82 <b>Range of IDs</b> allows selection of entities with the specified
83 IDs. 
84 <b>Threshold Value</b> can be, for example: "1,2,3,50-60,63,67,70-78"
85 </li><li>
86 <b>Color of Group</b> allows selection of entities belonging to the Group with
87 the color defined by the <b>Threshold Value</b>.
88 </li><li>
89 <b>Elements of a domain</b> allows selection of entities belonging to
90 one domain of a mesh. The domain is mesh part not connected to
91 other parts. <b>Threshold Value</b> locating any element of the domain can be either
92 - node ID (that you can pick in the Viewer) or
93 - geometrical vertex (that you can pick either in the Viewer or in the
94   Object Browser) or
95 - 3 coordinates of a point (that you can enter in TUI mode only).
96
97 </li>
98 </ul>
99
100 Some criteria are applicable to all <b>Entity types</b> of dimension
101 more than zero, i.e. to \b Edges, \b Faces and \b Volumes:
102 <ul><li>
103 <b>Linear</b> allows selection of Linear or Quadratic elements (if Unary is set to "Not")
104 </li><li>
105 <b>Geometry type</b> allows selection of elements by their geometric type
106 defined by the <b>Threshold Value</b>. The list of available geometric
107 types depends on the current entity type.
108 </li><li>
109 <b>Entity type</b> allows selection of elements by their type defined
110 as a combination of geometry type and the number of nodes.
111 </li>
112 </ul>
113
114 The following criteria are applicable to all <b>Entity types</b>
115 except for <b>Volumes</b>:
116 <ul><li>
117 <b>Belong to Plane</b> selects entities whose all nodes belong to a
118 specified plane within a given <b>Tolerance</b>.
119 </li><li>
120 <b>Belong to Cylinder</b> selects entities whose all nodes belong to a
121 specified cylinder within a given <b>Tolerance</b>.
122 </li><li>
123 <b>Belong to Surface</b> selects entities whose all nodes belong to a
124 specified arbitrary surface within a given <b>Tolerance</b>.
125 </li>
126 </ul>
127
128 The following criteria allow selecting mesh <b>Nodes</b>:
129 <ul><li>
130 <b>Free nodes</b> selects nodes not belonging to any mesh element.
131 </li><li>
132 <b>Double nodes</b> selects a node coincident with other nodes 
133 (within a given <b>Tolerance</b>). 
134 See also \ref tui_double_nodes_control "Double Nodes quality control".
135 </li>
136 </ul>
137
138 The following criteria allow selecting mesh <b>Edges</b>:
139 <ul><li>
140 <b>Free Borders</b> selects free 1D mesh elements, i.e. edges belonging to 
141 one element (face or volume) only. See also a
142 \ref free_borders_page "Free Borders quality control".
143 </li><li>
144 <b>Double edges</b> selects 1D mesh elements basing on the same set of nodes.
145 See also \ref filter_double_elements "Double Elements quality control".
146 </li><li>
147 <b>Borders at Multi-Connections</b> selects edges belonging to several faces.
148 The number of faces should be more, less or equal (within a given <b>Tolerance</b>)
149 to the predefined <b>Threshold Value</b>. See also a
150 \ref borders_at_multi_connection_page "Borders at Multi-Connection quality control".
151 </li><li>
152 <b>Length</b> selects edges with a value of length, which is more, less or equal
153 (within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
154 See also a
155 \ref length_page "Length quality control".
156 </li>
157 </ul>
158
159 The following criteria allow selecting mesh <b>Faces</b>:
160 <ul><li>
161 <b>Aspect ratio</b> selects 2D mesh elements with an aspect ratio (see also an
162 \ref aspect_ratio_page "Aspect Ratio quality control"), which is more, less or equal
163 (within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
164 </li><li>
165 <b>Warping</b> selects quadrangles with warping angle (see also a
166 \ref warping_page "Warping quality control"), which is more, less or equal
167 (within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
168 </li><li>
169 <b>Minimum angle</b> selects triangles and quadrangles with minimum angle (see also a
170 \ref minimum_angle_page "Minimum angle quality control"), which is more, less or equal
171 (within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
172 </li><li>
173 <b>Taper</b> selects quadrangles cells with taper value (see also a
174 \ref taper_page "Taper quality control"), which is more, less or equal (within a given
175 <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
176 </li><li>
177 <b>Skew</b> selects triangles and quadrangles with skew value (see also a
178 \ref skew_page "Skew quality control"), which is more, less or equal (within a given
179 <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
180 </li><li>
181 <b>Area</b> selects triangles and quadrangles with a value of area (see also an
182 \ref area_page "Area quality control"), which is more, less or equal (within a given
183 <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
184 </li><li>
185 <b>Free edges</b> selects 2D mesh elements having at least one 
186 edge, which is not shared with other faces. See also a
187 \ref free_edges_page "Free Edges quality control".
188 </li><li>
189 <b>Free faces</b> selects 2D mesh elements, which belong to less than two volumes.
190 </li><li>
191 <b>Double faces</b> selects 2D mesh elements basing on the same set of nodes.
192 See also \ref filter_double_elements "Double Elements quality control".
193 </li><li>
194 <b>Faces with bare border</b> selects 2D mesh elements having a free border without an edge on it.
195 See also \ref bare_border_faces_page "Bare border faces quality control".
196 </li><li>
197 <b>Over-constrained faces</b> selects 2D mesh elements having only one border shared 
198 with other 2D elements.
199 See also \ref over_constrained_faces_page "Over-constrained faces quality control".
200 </li><li>
201 <b>Borders at Multi-Connections 2D</b> selects cells consisting of edges belonging to
202 several elements of mesh. The number of mesh elements should be more, less or equal
203 (within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
204 See also a
205 \ref borders_at_multi_connection_2d_page "Borders at Multi-Connection 2D quality control".
206 </li><li>
207 <b>Length 2D</b> selects triangles and quadrangles combining of the edges with a value of
208 length, which is more, less or equal (within a given <b>Tolerance</b>) to the predefined
209 <b>Threshold Value</b>. See also a
210 \ref length_2d_page "Length 2D quality control".
211 </li><li>
212 <b>Coplanar faces</b> selects mesh faces neighboring the one selected
213 by ID in <b>Threshold Value</b> field, if the angle between the
214 normal to the neighboring face and the normal to the selected face is less then the
215 angular tolerance (defined in degrees). Selection continues among all neighbor faces of already 
216 selected ones.<br>
217 </li><li>
218 <b>Element Diameter 2D</b> selects triangles and quadrangles composed of the edges and
219 diagonals with a value of length, which is more, less or equal
220 (within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>. See also a
221 \ref max_element_length_2d_page "Element Diameter 2D quality control".
222 </li>
223 </ul>
224
225 The following criteria allow selecting  mesh <b>Volumes</b>:
226 <ul><li>
227 <b>Aspect ratio 3D</b> selects 3D mesh elements with an aspect ratio (see also an
228 \ref aspect_ratio_3d_page "Aspect Ratio 3D quality control"), which is more, less or equal
229 (within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
230 </li><li>
231 <b>Volume</b> selects 3D mesh elements with a value of volume (see also a
232 \ref volume_page "Volume quality control"), which is more, less or equal (within a given
233 <b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
234 </li><li>
235 <b>Element Diameter 3D</b> selects 3D mesh elements composed of the edges and
236 diagonals with a value of length, which is more, less or equal
237 (within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>. See also a
238 \ref max_element_length_3d_page "Element Diameter 3D quality control".
239 </li><li>
240 <b>Double volumes</b> selects 3D mesh elements basing on the same set of nodes.
241 See also \ref filter_double_elements "Double Elements quality control".
242 </li><li>
243 <b>Bad oriented volume</b> selects mesh volumes, which are incorrectly oriented from
244 the point of view of MED convention.
245 </li><li>
246 <b>Over-constrained volumes</b> selects mesh volumes having only one facet shared 
247 with other volumes.
248 See also \ref over_constrained_volumes_page "Over-constrained volumes quality control".
249 </li><li>
250 <b>Volumes with bare border</b> selects 3D mesh elements having a free border without a face on it.
251 See also \ref bare_border_volumes_page "Bare border volumes quality control".
252 </li>
253 </ul>
254
255
256 */