2008-03-07 12:45:34 +05:00
|
|
|
/*!
|
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
\page using_boolean_operations_page Boolean Operations
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
For detail description of the Boolean operations please refer to
|
|
|
|
<a href="SALOME_BOA_PA.pdf">this document</a>.
|
|
|
|
It provides a general review of the Partition and Boolean
|
|
|
|
operations algorithms, describes the usage methodology and highlighs
|
|
|
|
major limitations of these operations.
|
|
|
|
|
|
|
|
You can use the following boolean operations for construction of more
|
2008-03-07 12:45:34 +05:00
|
|
|
complex geometrical objects (2D & 3D elements):
|
|
|
|
|
|
|
|
<ul>
|
2013-05-23 12:42:48 +06:00
|
|
|
<li>\subpage fuse_operation_page "Fuse" - creates a shape from a list of shapes.</li>
|
2009-02-13 17:16:39 +05:00
|
|
|
<li>\subpage common_operation_page "Common" - transforms the common part
|
2013-05-23 12:42:48 +06:00
|
|
|
of a list of objects into an independent object.</li>
|
2009-02-13 17:16:39 +05:00
|
|
|
<li>\subpage cut_operation_page "Cut" - cuts one shape with
|
2013-05-23 12:42:48 +06:00
|
|
|
a list of others. </li>
|
2009-02-13 17:16:39 +05:00
|
|
|
<li>\subpage section_opeartion_page "Section" - creates a section between two shapes.</li>
|
2008-03-07 12:45:34 +05:00
|
|
|
</ul>
|
|
|
|
|
2013-05-23 12:42:48 +06:00
|
|
|
You can use advanced TUI commands performing these operations
|
|
|
|
independently from each other:
|
|
|
|
\par
|
2013-10-16 17:22:29 +06:00
|
|
|
<em>geompy.MakeFuseList(theShapesList, checkSelfInte)</em>, where \em theShapesList is
|
2013-05-23 12:42:48 +06:00
|
|
|
the list of shapes for Fuse operation;
|
|
|
|
\par
|
2013-10-16 17:22:29 +06:00
|
|
|
<em>geompy.MakeCommonList(theShapesList, checkSelfInte)</em>, where \em theShapesList is
|
2013-05-23 12:42:48 +06:00
|
|
|
the list of shapes for Common operation;
|
|
|
|
\par
|
2013-10-16 17:22:29 +06:00
|
|
|
<em>geompy.MakeCutList(theMainShape, theShapesList, checkSelfInte)</em>, where \em
|
2013-05-23 12:42:48 +06:00
|
|
|
theMainShape is the object of the operation and \em theShapesList is
|
|
|
|
the list of tools for Cut operation;
|
|
|
|
\par
|
2013-10-16 17:22:29 +06:00
|
|
|
<em>geompy.MakeSection(Shape1, Shape2, checkSelfInte)</em>, where \em Shape1 is the first
|
2013-05-23 12:42:48 +06:00
|
|
|
argument and \em Shape2 is the second argument of Section operation;
|
|
|
|
|
|
|
|
|
|
|
|
There are several TUI commands that can be used to perform boolean operations
|
|
|
|
with only two arguments. There is a general TUI command covering these
|
|
|
|
operations, which can be used alongside with separate commands for each
|
|
|
|
operation.
|
2008-03-07 12:45:34 +05:00
|
|
|
\par
|
2013-10-16 17:22:29 +06:00
|
|
|
<em>geompy.MakeBoolean(Shape1, Shape2, Operation, checkSelfInte),</em> where \em
|
2008-03-07 12:45:34 +05:00
|
|
|
Shape1 is the first argument and \em Shape2 is the second argument of
|
|
|
|
Boolean operation, \em Operation is a type of the Boolean operation (1
|
|
|
|
— Common, 2 — Cut, 3 — Fuse, 4 — Section).
|
|
|
|
|
|
|
|
|
|
|
|
Besides, you can use advanced TUI commands performing these operations
|
|
|
|
independently from each other:
|
|
|
|
\par
|
2013-10-16 17:22:29 +06:00
|
|
|
<em>geompy.MakeFuse(Shape1, Shape2, checkSelfInte)</em>, where \em Shape1 is the first
|
2013-05-23 12:42:48 +06:00
|
|
|
argument and \em Shape2 is the second argument of Fuse operation;
|
2008-03-07 12:45:34 +05:00
|
|
|
\par
|
2013-10-16 17:22:29 +06:00
|
|
|
<em>geompy.MakeCommon(Shape1, Shape2, checkSelfInte)</em>, where \em Shape1 is the first
|
2013-05-23 12:42:48 +06:00
|
|
|
argument and \em Shape2 is the second argument of Common operation;
|
2008-03-07 12:45:34 +05:00
|
|
|
\par
|
2013-10-16 17:22:29 +06:00
|
|
|
<em>geompy.MakeCut(Shape1, Shape2, checkSelfInte)</em>, where \em Shape1 is the first
|
2013-05-23 12:42:48 +06:00
|
|
|
argument and \em Shape2 is the second argument of Cut operation;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2013-10-16 17:22:29 +06:00
|
|
|
The flag \em checkSelfInte tells whether arguments should be checked for
|
|
|
|
self-intersection prior to an operation. Its default value is \em False which
|
|
|
|
means that there is no need to check it. This option is provided to ensure that
|
|
|
|
an operation is performed on not self-intersected shapes as these shapes are
|
|
|
|
not valid for boolean operations.
|
|
|
|
|
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
Our <b>TUI Scripts</b> provide you with useful examples of the use of
|
2008-03-07 12:45:34 +05:00
|
|
|
\ref tui_boolean_operations_page "Boolean Operations".
|
|
|
|
|
|
|
|
*/
|