From: vsv Date: Mon, 13 Aug 2018 16:51:05 +0000 (+0300) Subject: Create Build/Vertex help page X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c9a792708584c74e02f83aef4f89d3661f389c0;p=modules%2Fshaper.git Create Build/Vertex help page --- diff --git a/src/BuildPlugin/doc/TUI_faceFeatures.rst b/src/BuildPlugin/doc/TUI_faceFeatures.rst new file mode 100644 index 000000000..010139a58 --- /dev/null +++ b/src/BuildPlugin/doc/TUI_faceFeatures.rst @@ -0,0 +1,12 @@ + + .. _tui_create_face: + +Create Face +=========== + +.. literalinclude:: examples/face.py + :linenos: + :language: python + +:download:`Download this script ` + diff --git a/src/BuildPlugin/doc/TUI_shellFeature.rst b/src/BuildPlugin/doc/TUI_shellFeature.rst new file mode 100644 index 000000000..6ee08c997 --- /dev/null +++ b/src/BuildPlugin/doc/TUI_shellFeature.rst @@ -0,0 +1,12 @@ + + .. _tui_create_shell: + +Create Shell +============ + +.. literalinclude:: examples/shell.py + :linenos: + :language: python + +:download:`Download this script ` + diff --git a/src/BuildPlugin/doc/TUI_solidFeature.rst b/src/BuildPlugin/doc/TUI_solidFeature.rst new file mode 100644 index 000000000..e82ba11ca --- /dev/null +++ b/src/BuildPlugin/doc/TUI_solidFeature.rst @@ -0,0 +1,12 @@ + + .. _tui_create_solid: + +Create Solid +============ + +.. literalinclude:: examples/solid.py + :linenos: + :language: python + +:download:`Download this script ` + diff --git a/src/BuildPlugin/doc/TUI_wireFeature.rst b/src/BuildPlugin/doc/TUI_wireFeature.rst new file mode 100644 index 000000000..d22d216a1 --- /dev/null +++ b/src/BuildPlugin/doc/TUI_wireFeature.rst @@ -0,0 +1,12 @@ + + .. _tui_create_wire: + +Create Wire +=========== + +.. literalinclude:: examples/wire.py + :linenos: + :language: python + +:download:`Download this script ` + diff --git a/src/BuildPlugin/doc/examples/face.py b/src/BuildPlugin/doc/examples/face.py new file mode 100644 index 000000000..fd5304191 --- /dev/null +++ b/src/BuildPlugin/doc/examples/face.py @@ -0,0 +1,13 @@ +# -*- 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) +Face_1 = model.addFace(Part_1_doc, [model.selection("FACE", "Box_1_1/Top"), + model.selection("FACE", "Box_1_1/Front")]) +model.do() +model.end() diff --git a/src/BuildPlugin/doc/examples/shell.py b/src/BuildPlugin/doc/examples/shell.py new file mode 100644 index 000000000..7a978c5d1 --- /dev/null +++ b/src/BuildPlugin/doc/examples/shell.py @@ -0,0 +1,13 @@ +# -*- 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) +Shell_1 = model.addShell(Part_1_doc, [model.selection("FACE", "Box_1_1/Top"), + model.selection("FACE", "Box_1_1/Front")]) +model.do() +model.end() diff --git a/src/BuildPlugin/doc/examples/solid.py b/src/BuildPlugin/doc/examples/solid.py new file mode 100644 index 000000000..30b690b3d --- /dev/null +++ b/src/BuildPlugin/doc/examples/solid.py @@ -0,0 +1,18 @@ +# -*- 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) +Solid_1_objects = [model.selection("FACE", "Box_1_1/Top"), + model.selection("FACE", "Box_1_1/Front"), + model.selection("FACE", "Box_1_1/Left"), + model.selection("FACE", "Box_1_1/Back"), + model.selection("FACE", "Box_1_1/Right"), + model.selection("FACE", "Box_1_1/Bottom")] +Solid_1 = model.addSolid(Part_1_doc, Solid_1_objects) +model.do() +model.end() diff --git a/src/BuildPlugin/doc/examples/wire.py b/src/BuildPlugin/doc/examples/wire.py new file mode 100644 index 000000000..36497d8ff --- /dev/null +++ b/src/BuildPlugin/doc/examples/wire.py @@ -0,0 +1,16 @@ +# -*- 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) +Wire_1_objects = [model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"), + model.selection("EDGE", "Box_1_1/Front&Box_1_1/Top"), + model.selection("EDGE", "Box_1_1/Right&Box_1_1/Top"), + model.selection("EDGE", "Box_1_1/Back&Box_1_1/Top")] +Wire_1 = model.addWire(Part_1_doc, Wire_1_objects) +model.do() +model.end() diff --git a/src/BuildPlugin/doc/faceFeature.rst b/src/BuildPlugin/doc/faceFeature.rst index 2cfcd473a..0eb6c65e1 100644 --- a/src/BuildPlugin/doc/faceFeature.rst +++ b/src/BuildPlugin/doc/faceFeature.rst @@ -2,9 +2,37 @@ Face ==== +To create face in the active part: +#. select in the Main Menu *Build - > Face* item or +#. click **Face** button in the toolbar + +.. image:: images/feature_face.png + :align: center + +.. centered:: + **Face** button + +The following property panel will be opened: + .. image:: images/Face.png :align: center .. centered:: Create a face + +Select one or several faces in viewer. + +**Apply** button creates faces. + +**Cancel** button cancels operation. + +The result of the operation will be set of faces created from selected shapes: + +.. image:: images/CreateFace.png + :align: center + +.. centered:: + Result of the operation. + +**See Also** a sample TUI Script of a :ref:`tui_create_face` operation. diff --git a/src/BuildPlugin/doc/images/CreateEdge.png b/src/BuildPlugin/doc/images/CreateEdge.png index 2f31c2b63..3d4b980ff 100644 Binary files a/src/BuildPlugin/doc/images/CreateEdge.png and b/src/BuildPlugin/doc/images/CreateEdge.png differ diff --git a/src/BuildPlugin/doc/images/CreateFace.png b/src/BuildPlugin/doc/images/CreateFace.png new file mode 100644 index 000000000..9601a7997 Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateFace.png differ diff --git a/src/BuildPlugin/doc/images/CreateShell.png b/src/BuildPlugin/doc/images/CreateShell.png new file mode 100644 index 000000000..3622ab4ce Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateShell.png differ diff --git a/src/BuildPlugin/doc/images/CreateSolid.png b/src/BuildPlugin/doc/images/CreateSolid.png new file mode 100644 index 000000000..830283ade Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateSolid.png differ diff --git a/src/BuildPlugin/doc/images/CreateWire.png b/src/BuildPlugin/doc/images/CreateWire.png new file mode 100644 index 000000000..c773dd6da Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateWire.png differ diff --git a/src/BuildPlugin/doc/images/Face.png b/src/BuildPlugin/doc/images/Face.png index 5bae9ac17..64cdf0654 100644 Binary files a/src/BuildPlugin/doc/images/Face.png and b/src/BuildPlugin/doc/images/Face.png differ diff --git a/src/BuildPlugin/doc/images/Shell.png b/src/BuildPlugin/doc/images/Shell.png index 2f552b7ca..b16eda7a2 100644 Binary files a/src/BuildPlugin/doc/images/Shell.png and b/src/BuildPlugin/doc/images/Shell.png differ diff --git a/src/BuildPlugin/doc/images/Solid.png b/src/BuildPlugin/doc/images/Solid.png index 7af53995e..1c6894d5b 100644 Binary files a/src/BuildPlugin/doc/images/Solid.png and b/src/BuildPlugin/doc/images/Solid.png differ diff --git a/src/BuildPlugin/doc/images/Wire.png b/src/BuildPlugin/doc/images/Wire.png index 4b18932af..d147495d8 100644 Binary files a/src/BuildPlugin/doc/images/Wire.png and b/src/BuildPlugin/doc/images/Wire.png differ diff --git a/src/BuildPlugin/doc/images/feature_face.png b/src/BuildPlugin/doc/images/feature_face.png new file mode 100644 index 000000000..08ba00469 Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_face.png differ diff --git a/src/BuildPlugin/doc/images/feature_shell.png b/src/BuildPlugin/doc/images/feature_shell.png new file mode 100644 index 000000000..55373754c Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_shell.png differ diff --git a/src/BuildPlugin/doc/images/feature_solid.png b/src/BuildPlugin/doc/images/feature_solid.png new file mode 100644 index 000000000..84dca6be1 Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_solid.png differ diff --git a/src/BuildPlugin/doc/images/feature_wire.png b/src/BuildPlugin/doc/images/feature_wire.png new file mode 100644 index 000000000..28fa02523 Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_wire.png differ diff --git a/src/BuildPlugin/doc/shellFeature.rst b/src/BuildPlugin/doc/shellFeature.rst index 8c6266564..c7bff0966 100644 --- a/src/BuildPlugin/doc/shellFeature.rst +++ b/src/BuildPlugin/doc/shellFeature.rst @@ -2,9 +2,37 @@ Shell ===== +To create shell in the active part: + +#. select in the Main Menu *Build - > Shell* item or +#. click **Shell** button in the toolbar + +.. image:: images/feature_shell.png + :align: center + +.. centered:: + **Shell** button + +The following property panel will be opened: .. image:: images/Shell.png :align: center .. centered:: Create a shell + +Select one or several faces in viewer. + +**Apply** button creates a shell. + +**Cancel** button cancels operation. + +The result of the operation will be shell created from selected shapes: + +.. image:: images/CreateShell.png + :align: center + +.. centered:: + Result of the operation. + +**See Also** a sample TUI Script of a :ref:`tui_create_shell` operation. diff --git a/src/BuildPlugin/doc/solidFeature.rst b/src/BuildPlugin/doc/solidFeature.rst index 4e78a1430..41d55300a 100644 --- a/src/BuildPlugin/doc/solidFeature.rst +++ b/src/BuildPlugin/doc/solidFeature.rst @@ -2,9 +2,37 @@ Solid ===== +To create solid in the active part: + +#. select in the Main Menu *Build - > Solid* item or +#. click **Solid** button in the toolbar + +.. image:: images/feature_solid.png + :align: center + +.. centered:: + **Solid** button + +The following property panel will be opened: .. image:: images/Solid.png :align: center .. centered:: Create a solid + +Select one or several faces in viewer. Selected faces have to define a closed volume + +**Apply** button creates solid. + +**Cancel** button cancels operation. + +The result of the operation will be a solid created from selected shapes: + +.. image:: images/CreateSolid.png + :align: center + +.. centered:: + Result of the operation. + +**See Also** a sample TUI Script of a :ref:`tui_create_solid` operation. diff --git a/src/BuildPlugin/doc/wireFeature.rst b/src/BuildPlugin/doc/wireFeature.rst index a7b22081a..17c560910 100644 --- a/src/BuildPlugin/doc/wireFeature.rst +++ b/src/BuildPlugin/doc/wireFeature.rst @@ -2,9 +2,37 @@ Wire ==== +To create wire in the active part: + +#. select in the Main Menu *Build - > Wire* item or +#. click **Wire** button in the toolbar + +.. image:: images/feature_wire.png + :align: center + +.. centered:: + **Wire** button + +The following property panel will be opened: .. image:: images/Wire.png :align: center .. centered:: Create a wire + +Select one or several edges in viewer. For automatic selection of closed contour starting from a selected edge it is necessary to press **Add contour** button. + +**Apply** button creates wire. + +**Cancel** button cancels operation. + +The result of the operation will be a wire created from selected shapes: + +.. image:: images/CreateWire.png + :align: center + +.. centered:: + Result of the operation. + +**See Also** a sample TUI Script of a :ref:`tui_create_wire` operation.