2012-08-09 13:58:02 +06:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page shared_shapes_page Get Shared Shapes
|
|
|
|
|
|
|
|
This operation is a special case of <b>Explode</b> operation. It
|
|
|
|
produces sub-shapes of the exploded shape (the first shape in the list
|
2014-12-26 13:52:00 +05:00
|
|
|
of argument shapes), which are shared with other shapes in the
|
2014-10-15 21:26:27 +06:00
|
|
|
arguments. The argument shapes can also be contained in a compound or
|
|
|
|
group.
|
2012-08-09 13:58:02 +06:00
|
|
|
|
|
|
|
To use this operation, select in the Main Menu <b>Operations -> Get
|
|
|
|
Shared Shapes.</b> The following dialog box will appear.
|
|
|
|
|
|
|
|
\image html shared_shapes.png
|
|
|
|
|
2014-12-26 13:52:00 +05:00
|
|
|
In this dialog:
|
|
|
|
- <b>Name</b> is the base name of the resulting shapes.
|
2015-05-25 14:45:48 +05:00
|
|
|
- <b>Shapes</b> are the shapes whose shared sub-shapes should be found.
|
2014-12-26 13:52:00 +05:00
|
|
|
- <b>Sub-shapes Type</b> is the type of required sub-shapes.
|
2014-12-30 18:55:57 +05:00
|
|
|
- <b>Shared by all</b> option specifies what type of shared sub-shapes should be checked:
|
2015-05-25 14:45:48 +05:00
|
|
|
- \b On: searches for sub-shapes from the first input shape shared with all other input shapes;
|
|
|
|
- \b Off: searches for sub-shapes shared between couples of input shapes.
|
2014-12-26 13:52:00 +05:00
|
|
|
|
2014-12-30 18:55:57 +05:00
|
|
|
\note For the case when "Shared by all" option is switched off - if an input list of shapes
|
2015-05-25 14:45:48 +05:00
|
|
|
contains a single compound, the sub-shapes shared between all possible couples of its top-level shapes
|
|
|
|
are searched for; otherwise, only sub-shapes that are shared between the first input shape and
|
|
|
|
all other input shapes are searched.
|
2014-12-26 13:52:00 +05:00
|
|
|
|
|
|
|
<b>Advanced options:</b> \ref preview_anchor "Preview"
|
2012-08-09 13:58:02 +06:00
|
|
|
|
2014-10-15 21:26:27 +06:00
|
|
|
<b>TUI Command:</b> <em> geompy.GetSharedShapesMulti( Shapes, Type ),</em>
|
2015-05-25 14:45:48 +05:00
|
|
|
<br> where \em Shapes is a list or compound of shapes, whose shared sub-
|
|
|
|
shapes should be found and \em Type is the type of required sub-shapes.
|
2012-08-09 13:58:02 +06:00
|
|
|
|
|
|
|
Our <b>TUI Scripts</b> provide you with useful examples of the use of
|
2014-12-26 13:52:00 +05:00
|
|
|
Get Shared Shapes functionality:
|
|
|
|
- \ref tui_shared_shapes "Example 1"
|
|
|
|
- \ref swig_GetSharedShapes "Example 2"
|
2012-08-09 13:58:02 +06:00
|
|
|
|
|
|
|
*/
|