2008-03-07 12:47:05 +05:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page creating_groups_page Creating groups
|
|
|
|
|
2015-03-25 14:36:47 +05:00
|
|
|
\n In MESH you can create a \ref grouping_elements_page "group" of
|
|
|
|
elements of a certain type. The main way to create a group, is to
|
|
|
|
select in the \b Mesh menu <b>Create Group</b> item (also available in
|
|
|
|
the context menu of the mesh).<br>
|
|
|
|
To create a group you should define the following:
|
2008-03-07 12:47:05 +05:00
|
|
|
<ul>
|
2012-08-09 16:03:55 +06:00
|
|
|
<li><b>Mesh</b> - the mesh whose elements will form your
|
2008-03-07 12:47:05 +05:00
|
|
|
group. You can select your mesh in the Objet Browser or in the 3D
|
|
|
|
viewer.</li>
|
|
|
|
<li><b>Elements Type</b> - set of radio buttons allows to select the type of
|
|
|
|
elements which will form your group:</li>
|
|
|
|
<ul>
|
|
|
|
<li><b>Nodes</b></li>
|
2012-12-13 17:41:29 +06:00
|
|
|
<li><b>0D Element</b></li>
|
|
|
|
<li><b>Ball</b></li>
|
2008-03-07 12:47:05 +05:00
|
|
|
<li><b>Edges</b></li>
|
|
|
|
<li><b>Faces</b></li>
|
|
|
|
<li><b>Volumes</b></li>
|
|
|
|
</ul>
|
|
|
|
<li><b>Name</b> field allows to enter the name of your new group.</li>
|
2015-03-25 14:36:47 +05:00
|
|
|
<li><b>Color</b> - allows to assign to the group a certain color. The
|
|
|
|
chosen color is used to display the elements of the group.</li>
|
2008-03-07 12:47:05 +05:00
|
|
|
</ul>
|
2015-03-25 14:36:47 +05:00
|
|
|
Mesh module distinguishes between the three Group types:
|
2012-08-09 16:03:55 +06:00
|
|
|
<b>Standalone Group</b>, <b>Group on Geometry</b> and <b>Group on Filter</b>.
|
2008-03-07 12:47:05 +05:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
\anchor standalone_group <br><h2>"Standalone Group"</h2>
|
2008-03-07 12:47:05 +05:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
<b>Standalone Group</b> contains a list of mesh elements, which you can define in
|
|
|
|
the following ways:
|
2008-03-07 12:47:05 +05:00
|
|
|
<ul>
|
2012-08-09 16:03:55 +06:00
|
|
|
<li>By adding all entities of the chosen type existing in the
|
2015-03-25 14:36:47 +05:00
|
|
|
mesh. For this, turn on the <b>Select All</b> check-box. In this mode
|
|
|
|
all controls, which allow selecting the entities, are
|
2012-08-09 16:03:55 +06:00
|
|
|
disabled.</li>
|
|
|
|
<li>By choosing entities manually with the mouse in the 3D Viewer. For
|
|
|
|
this, turn on the <b>Enable manual edition</b> check box. You can
|
|
|
|
click on an element in the 3D viewer and it will be highlighted. After
|
|
|
|
that click the \b Add button and the ID of this element will be
|
2014-08-21 17:15:12 +06:00
|
|
|
added to the list.<br>
|
|
|
|
The <b>Set filter</b> button allows to define the filter for
|
|
|
|
selection of the elements for your group. See more about filters on
|
|
|
|
the \ref selection_filter_library_page "Selection filter library"
|
|
|
|
page.</li>
|
2015-03-25 14:36:47 +05:00
|
|
|
<li>By adding entities from either a sub-mesh or another
|
|
|
|
group. For this, turn on the <b>Enable manual edition</b> check
|
|
|
|
box. <b>Select from</b> fields group allows to select a sub-mesh or
|
|
|
|
a group of the appropriate type and to \b Add their elements to the
|
|
|
|
group.</li>
|
2012-08-09 16:03:55 +06:00
|
|
|
</ul>
|
|
|
|
In the <b>manual edition</b> mode you can
|
|
|
|
<ul>
|
2014-10-27 15:00:38 +05:00
|
|
|
<li>click the \b Remove button to remove the selected items from
|
2014-08-21 17:15:12 +06:00
|
|
|
the list.</li>
|
2012-08-09 16:03:55 +06:00
|
|
|
<li>click the <b>Sort List</b> button to sort the list of IDs of
|
2014-08-21 17:15:12 +06:00
|
|
|
mesh elements.</li>
|
2008-03-07 12:47:05 +05:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
\image html creategroup.png
|
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
For example, to create a new group containing all faces of an
|
|
|
|
existing group and some other faces selected in the viewer:
|
|
|
|
<ul>
|
|
|
|
<li> Select the \b Face type of entities and input the name of the new group.</li>
|
|
|
|
<li> Check the \b Group checkbox in <b>Select From</b> group.</li>
|
2015-03-25 14:36:47 +05:00
|
|
|
<li> Select the existing group of faces in the object browser or in the viewer.</li>
|
2012-08-09 16:03:55 +06:00
|
|
|
<li> Click \b Add in \b Content group. <b>Id Elements</b> list will be filled
|
2015-03-25 14:36:47 +05:00
|
|
|
with IDs of faces belonging to the selected group.</li>
|
2012-08-09 16:03:55 +06:00
|
|
|
<li> Select other faces in the viewer.</li>
|
|
|
|
<li> Click \b Add in \b Content group.</li>
|
|
|
|
<li> Click \b Apply button to create the new group.</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
Please note that the new group does not have references to the source
|
|
|
|
group. It contains only the list of face IDs. So if the source group
|
|
|
|
is changed, the new one is not updated accordingly.
|
|
|
|
|
|
|
|
|
2008-03-07 12:47:05 +05:00
|
|
|
\image html image130.gif
|
2012-08-09 16:03:55 +06:00
|
|
|
<center>In this picture the brown cells belong to a group defined
|
|
|
|
manually.</center>
|
2008-03-07 12:47:05 +05:00
|
|
|
|
|
|
|
<b>See Also</b> a sample TUI Script of a
|
|
|
|
\ref tui_create_standalone_group "Create a Standalone Group"
|
|
|
|
operation.
|
|
|
|
|
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
\anchor group_on_geom <br><h2>"Group on Geometry"</h2>
|
2008-03-07 12:47:05 +05:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
To create a group on geometry check <b>Group on geometry</b> in the \b
|
|
|
|
Group \b type field. The group on geometry contains the elements
|
|
|
|
of a certain type generated on the selected geometrical object. Group
|
2015-03-25 14:36:47 +05:00
|
|
|
contents are dynamically updated if the mesh is modified. The group on
|
|
|
|
geometry can be created only if the mesh is based on geometry.
|
|
|
|
|
2015-05-25 14:40:41 +05:00
|
|
|
To define a group, click the \a Selection button and choose
|
2015-03-25 14:36:47 +05:00
|
|
|
- <em>Direct geometry selection</em> to select a shape in the Object
|
|
|
|
Browser or in the Viewer;
|
|
|
|
- <em>Find geometry by mesh element selection</em> to activate a
|
2015-05-25 14:40:41 +05:00
|
|
|
dialog which retrieves a shape by the selected element generated on
|
2015-03-25 14:36:47 +05:00
|
|
|
this shape.
|
|
|
|
|
|
|
|
Note that this choice is available only if the mesh elements are
|
|
|
|
already generated.
|
2009-02-17 10:27:49 +05:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
\image html a-creategroup.png
|
2009-02-17 10:27:49 +05:00
|
|
|
|
2015-03-25 14:36:47 +05:00
|
|
|
After confirmation of the operation a new group of mesh elements will
|
|
|
|
be created.
|
|
|
|
|
2008-03-07 12:47:05 +05:00
|
|
|
\image html image132.gif
|
2012-08-09 16:03:55 +06:00
|
|
|
<center>In this picture the cells which belong to a certain
|
|
|
|
geometrical face are selected in green.</center>
|
2008-03-07 12:47:05 +05:00
|
|
|
|
|
|
|
<b>See Also</b> a sample TUI Script of a
|
|
|
|
\ref tui_create_group_on_geometry "Create a Group on Geometry"
|
|
|
|
operation.
|
|
|
|
|
2009-02-17 10:27:49 +05:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
\anchor group_on_filter <br><h2>"Group on Filter"</h2>
|
2009-02-17 10:27:49 +05:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
To create a group on filter check <b>Group on filter</b> in the <b>
|
|
|
|
Group type</b> field. The group on filter contains the elements
|
|
|
|
of a certain type satisfying the defined filter. Group contents are
|
2015-03-25 14:36:47 +05:00
|
|
|
dynamically updated if the mesh is modified.
|
|
|
|
|
|
|
|
To define a group, click the <b>Set filter</b> button and define
|
2015-05-25 14:40:41 +05:00
|
|
|
criteria of the filter in the opened dialog. After the
|
|
|
|
operation is confirmed, a new group of mesh elements will be created. See more about
|
2015-03-25 14:36:47 +05:00
|
|
|
filters on the
|
|
|
|
\ref selection_filter_library_page "Selection filter library" page.
|
2009-02-17 10:27:49 +05:00
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
\image html creategroup_on_filter.png
|
2009-02-17 10:27:49 +05:00
|
|
|
|
|
|
|
<b>See Also</b> a sample TUI Script of a
|
2012-08-09 16:03:55 +06:00
|
|
|
\ref tui_create_group_on_filter "Create a Group on Filter" operation.
|
|
|
|
|
|
|
|
*/
|