From: Clarisse GENRAULT - DEN/DANS/DM2S/STMF/LGLS - 2012/10/01 Date: Thu, 7 Mar 2019 07:52:29 +0000 (+0100) Subject: Renaming Fill in Split : Help X-Git-Tag: V9_3_0b1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4352aa424536b90f09aa658f24ca236b49ba6f31;p=modules%2Fshaper.git Renaming Fill in Split : Help --- diff --git a/src/FeaturesPlugin/doc/TUI_fillFeature.rst b/src/FeaturesPlugin/doc/TUI_fillFeature.rst deleted file mode 100644 index becb9ee28..000000000 --- a/src/FeaturesPlugin/doc/TUI_fillFeature.rst +++ /dev/null @@ -1,12 +0,0 @@ - - .. _tui_create_fill: - -Create Fill -=========== - -.. literalinclude:: examples/fill.py - :linenos: - :language: python - -:download:`Download this script ` - diff --git a/src/FeaturesPlugin/doc/TUI_splitFeature.rst b/src/FeaturesPlugin/doc/TUI_splitFeature.rst new file mode 100644 index 000000000..8ed72fcba --- /dev/null +++ b/src/FeaturesPlugin/doc/TUI_splitFeature.rst @@ -0,0 +1,12 @@ + + .. _tui_create_bool_split: + +Create Split +============ + +.. literalinclude:: examples/bool_split.py + :linenos: + :language: python + +:download:`Download this script ` + diff --git a/src/FeaturesPlugin/doc/examples/bool_split.py b/src/FeaturesPlugin/doc/examples/bool_split.py new file mode 100644 index 000000000..0eaec82c7 --- /dev/null +++ b/src/FeaturesPlugin/doc/examples/bool_split.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Box_1 = model.addBox(Part_1_doc, 10, 10, 10) +Cylinder_1 = model.addCylinder(Part_1_doc, + model.selection("VERTEX", "PartSet/Origin"), + model.selection("EDGE", "PartSet/OZ"), 5, 10) +Fill_1 = model.addSplit(Part_1_doc, + [model.selection("SOLID", "Cylinder_1_1")], + [model.selection("SOLID", "Box_1_1")]) +model.do() +model.end() diff --git a/src/FeaturesPlugin/doc/examples/fill.py b/src/FeaturesPlugin/doc/examples/fill.py deleted file mode 100644 index 866345fa4..000000000 --- a/src/FeaturesPlugin/doc/examples/fill.py +++ /dev/null @@ -1,17 +0,0 @@ -# -*- coding: utf-8 -*- - -from salome.shaper import model - -model.begin() -partSet = model.moduleDocument() -Part_1 = model.addPart(partSet) -Part_1_doc = Part_1.document() -Box_1 = model.addBox(Part_1_doc, 10, 10, 10) -Cylinder_1 = model.addCylinder(Part_1_doc, - model.selection("VERTEX", "PartSet/Origin"), - model.selection("EDGE", "PartSet/OZ"), 5, 10) -Fill_1 = model.addFill(Part_1_doc, - [model.selection("SOLID", "Cylinder_1_1")], - [model.selection("SOLID", "Box_1_1")]) -model.do() -model.end() diff --git a/src/FeaturesPlugin/doc/fillFeature.rst b/src/FeaturesPlugin/doc/fillFeature.rst deleted file mode 100644 index 19db3d8e2..000000000 --- a/src/FeaturesPlugin/doc/fillFeature.rst +++ /dev/null @@ -1,45 +0,0 @@ - -Fill -==== - -Fill feature implements a Boolean operation filling of main objects by parts of tool objects. - -To perform Fill in the active part: - -#. select in the Main Menu *Features - > Fill* item or -#. click **Fill** button in the toolbar - -.. image:: images/bool_fill.png - :align: center - -.. centered:: - **Fill** button - -The following property panel will be opened: - -.. image:: images/Fill.png - :align: center - -.. centered:: - **Fill operation** - -- **Main Objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be cut and filled by tool objects. -- **Tool Objects** contains a list of objects selected in the Object Browser or in the Viewer, which will cut and fill the main objects. -- **See preview** button shows a result of the operation. - -**TUI Command**: *model.addFill(Part_doc, mainObjects, toolObjects)* - -**Arguments**: Part + list of main objects + list of tool objects. - -Result -"""""" - -The Result of the operation will be a shape, which is a fill of tool objects with main objects: - -.. image:: images/CreatedFill.png - :align: center - -.. centered:: - **Fill created** - -**See Also** a sample TUI Script of :ref:`tui_create_fill` operation. diff --git a/src/FeaturesPlugin/doc/images/CreatedFill.png b/src/FeaturesPlugin/doc/images/CreatedFill.png deleted file mode 100644 index 7d8b28faa..000000000 Binary files a/src/FeaturesPlugin/doc/images/CreatedFill.png and /dev/null differ diff --git a/src/FeaturesPlugin/doc/images/CreatedSplit.png b/src/FeaturesPlugin/doc/images/CreatedSplit.png new file mode 100644 index 000000000..7d8b28faa Binary files /dev/null and b/src/FeaturesPlugin/doc/images/CreatedSplit.png differ diff --git a/src/FeaturesPlugin/doc/images/Fill.png b/src/FeaturesPlugin/doc/images/Fill.png deleted file mode 100644 index e5c4cd41e..000000000 Binary files a/src/FeaturesPlugin/doc/images/Fill.png and /dev/null differ diff --git a/src/FeaturesPlugin/doc/images/Split.png b/src/FeaturesPlugin/doc/images/Split.png new file mode 100644 index 000000000..7673ef4a3 Binary files /dev/null and b/src/FeaturesPlugin/doc/images/Split.png differ diff --git a/src/FeaturesPlugin/doc/images/bool_fill.png b/src/FeaturesPlugin/doc/images/bool_fill.png deleted file mode 100644 index 5e03aa25e..000000000 Binary files a/src/FeaturesPlugin/doc/images/bool_fill.png and /dev/null differ diff --git a/src/FeaturesPlugin/doc/images/bool_split.png b/src/FeaturesPlugin/doc/images/bool_split.png new file mode 100644 index 000000000..5e03aa25e Binary files /dev/null and b/src/FeaturesPlugin/doc/images/bool_split.png differ diff --git a/src/FeaturesPlugin/doc/splitFeature.rst b/src/FeaturesPlugin/doc/splitFeature.rst new file mode 100644 index 000000000..fe0458161 --- /dev/null +++ b/src/FeaturesPlugin/doc/splitFeature.rst @@ -0,0 +1,45 @@ + +Split +===== + +Split feature implements a Boolean operation splitting of main objects by parts of tool objects. + +To perform Split in the active part: + +#. select in the Main Menu *Features - > Split* item or +#. click **Split** button in the toolbar + +.. image:: images/bool_split.png + :align: center + +.. centered:: + **Split** button + +The following property panel will be opened: + +.. image:: images/Split.png + :align: center + +.. centered:: + **Split operation** + +- **Main Objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be cut and splitted by tool objects. +- **Tool Objects** contains a list of objects selected in the Object Browser or in the Viewer, which will cut and split the main objects. +- **See preview** button shows a result of the operation. + +**TUI Command**: *model.addSplit(Part_doc, mainObjects, toolObjects)* + +**Arguments**: Part + list of main objects + list of tool objects. + +Result +"""""" + +The Result of the operation will be a shape, which is a split of tool objects with main objects: + +.. image:: images/CreatedSplit.png + :align: center + +.. centered:: + **Split created** + +**See Also** a sample TUI Script of :ref:`tui_create_bool_split` operation. diff --git a/src/FeaturesPlugin/plugin-Features.xml b/src/FeaturesPlugin/plugin-Features.xml index e3756b502..c31b2795b 100644 --- a/src/FeaturesPlugin/plugin-Features.xml +++ b/src/FeaturesPlugin/plugin-Features.xml @@ -71,7 +71,7 @@