geom/doc/salome/gui/GEOM/input/using_boolean_operations.doc

80 lines
3.5 KiB
Plaintext
Raw Normal View History

/*!
2012-08-09 13:58:02 +06:00
\page using_boolean_operations_page Boolean Operations
2013-12-18 20:23:59 +06:00
For a detailed description of Boolean operations refer to
2012-08-09 13:58:02 +06:00
<a href="SALOME_BOA_PA.pdf">this document</a>.
It provides a general review of the Partition and Boolean
2013-12-18 20:23:59 +06:00
operations algorithms, describes the usage methodology and highlights
2012-08-09 13:58:02 +06:00
major limitations of these operations.
You can use the following boolean operations for construction of more
complex geometrical objects (2D & 3D elements):
<ul>
<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
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
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>
</ul>
You can use advanced TUI commands performing these operations
independently from each other:
\par
<em>geompy.MakeFuseList(theShapesList, checkSelfInte)</em>, where \em theShapesList is
the list of shapes for Fuse operation;
\par
<em>geompy.MakeCommonList(theShapesList, checkSelfInte)</em>, where \em theShapesList is
the list of shapes for Common operation;
\par
<em>geompy.MakeCutList(theMainShape, theShapesList, checkSelfInte)</em>, where \em
theMainShape is the object of the operation and \em theShapesList is
the list of tools for Cut operation;
\par
<em>geompy.MakeSection(Shape1, Shape2, checkSelfInte)</em>, where \em Shape1 is the first
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.
\par
<em>geompy.MakeBoolean(Shape1, Shape2, Operation, checkSelfInte),</em> where \em
Shape1 is the first argument and \em Shape2 is the second argument of
2013-12-18 20:23:59 +06:00
a Boolean operation, \em Operation is the type of a Boolean operation (1
&mdash; Common, 2 &mdash; Cut, 3 &mdash; Fuse, 4 &mdash; Section).
Besides, you can use advanced TUI commands performing these operations
independently from each other:
\par
<em>geompy.MakeFuse(Shape1, Shape2, checkSelfInte)</em>, where \em Shape1 is the first
argument and \em Shape2 is the second argument of Fuse operation;
\par
<em>geompy.MakeCommon(Shape1, Shape2, checkSelfInte)</em>, where \em Shape1 is the first
argument and \em Shape2 is the second argument of Common operation;
\par
<em>geompy.MakeCut(Shape1, Shape2, checkSelfInte)</em>, where \em Shape1 is the first
argument and \em Shape2 is the second argument of Cut operation;
2013-12-18 20:23:59 +06:00
The flag \em checkSelfInte indicates whether the 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
2013-12-18 20:23:59 +06:00
an operation is performed on not self-intersected shapes as they are
not valid for boolean operations.
2013-12-18 20:23:59 +06:00
\note This algorithm does not find all types of self-intersections. It is tuned
to detect vertex/vertex, vertex/edge, edge/edge, vertex/face and edge/face
intersections. Face/face intersections detection is switched off as it
is a time-consuming operation that gives an impact on performance. To find
2013-12-18 20:23:59 +06:00
all self-intersections use \ref check_self_intersections_page
"Detect Self-intersection tool".
2012-08-09 13:58:02 +06:00
Our <b>TUI Scripts</b> provide you with useful examples of the use of
\ref tui_boolean_operations_page "Boolean Operations".
*/