2008-03-07 12:45:34 +05:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page cut_operation_page Cut
|
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
To produce a \b Cut operation in the <b>Main Menu</b> select <b>Operations - > Boolean - > Cut</b>
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2013-05-23 12:42:48 +06:00
|
|
|
This operation cuts a shape with a list of other shapes.
|
|
|
|
|
|
|
|
The \b Result will be a \b GEOM_Object.
|
|
|
|
|
2013-10-16 17:22:29 +06:00
|
|
|
<b>TUI Command:</b> <em>geompy.MakeCutList(theMainShape, theShapesList, checkSelfInte)</em>\n
|
|
|
|
<b>Arguments:</b> Name + a main shape + a list of other shapes + an optional flag for self-intersection check.\n
|
2012-08-09 13:58:02 +06:00
|
|
|
<b>Advanced option:</b>
|
|
|
|
\ref restore_presentation_parameters_page "Set presentation parameters and sub-shapes from arguments".
|
|
|
|
|
2013-05-23 12:42:48 +06:00
|
|
|
\image html bool3.png "Cut dialog"
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2013-05-23 12:42:48 +06:00
|
|
|
For a particular case with two shapes (object and tool) for the Cut operation there is the following TUI command:
|
|
|
|
|
2013-10-16 17:22:29 +06:00
|
|
|
<b>TUI Command:</b> <em>geompy.MakeCut(s1, s2, checkSelfInte)</em>\n
|
|
|
|
<b>Arguments:</b> Name + the object + the tool + an optional flag for self-intersection check.
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
<b>Example:</b>
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
\image html fusesn1.png "The initial shapes"
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
\image html cutsn.png "The resulting object"
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2013-10-16 17:22:29 +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_cut "Boolean Operations".
|
|
|
|
|
2013-05-23 12:42:48 +06:00
|
|
|
<b> More details </b>
|
|
|
|
|
|
|
|
For a detailed description of the Boolean operations please refer to
|
2013-10-16 17:22:29 +06:00
|
|
|
<a href="SALOME_BOA_PA.pdf">this document</a>.
|
2013-05-23 12:42:48 +06:00
|
|
|
It provides a general review of the Partition and Boolean
|
|
|
|
operations algorithms, describes the usage methodology and highlights
|
|
|
|
major limitations of these operations.
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
*/
|