]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Create Build/Vertex help page
authorvsv <vsv@opencascade.com>
Mon, 13 Aug 2018 16:51:05 +0000 (19:51 +0300)
committervsv <vsv@opencascade.com>
Mon, 13 Aug 2018 16:51:05 +0000 (19:51 +0300)
25 files changed:
src/BuildPlugin/doc/TUI_faceFeatures.rst [new file with mode: 0644]
src/BuildPlugin/doc/TUI_shellFeature.rst [new file with mode: 0644]
src/BuildPlugin/doc/TUI_solidFeature.rst [new file with mode: 0644]
src/BuildPlugin/doc/TUI_wireFeature.rst [new file with mode: 0644]
src/BuildPlugin/doc/examples/face.py [new file with mode: 0644]
src/BuildPlugin/doc/examples/shell.py [new file with mode: 0644]
src/BuildPlugin/doc/examples/solid.py [new file with mode: 0644]
src/BuildPlugin/doc/examples/wire.py [new file with mode: 0644]
src/BuildPlugin/doc/faceFeature.rst
src/BuildPlugin/doc/images/CreateEdge.png
src/BuildPlugin/doc/images/CreateFace.png [new file with mode: 0644]
src/BuildPlugin/doc/images/CreateShell.png [new file with mode: 0644]
src/BuildPlugin/doc/images/CreateSolid.png [new file with mode: 0644]
src/BuildPlugin/doc/images/CreateWire.png [new file with mode: 0644]
src/BuildPlugin/doc/images/Face.png
src/BuildPlugin/doc/images/Shell.png
src/BuildPlugin/doc/images/Solid.png
src/BuildPlugin/doc/images/Wire.png
src/BuildPlugin/doc/images/feature_face.png [new file with mode: 0644]
src/BuildPlugin/doc/images/feature_shell.png [new file with mode: 0644]
src/BuildPlugin/doc/images/feature_solid.png [new file with mode: 0644]
src/BuildPlugin/doc/images/feature_wire.png [new file with mode: 0644]
src/BuildPlugin/doc/shellFeature.rst
src/BuildPlugin/doc/solidFeature.rst
src/BuildPlugin/doc/wireFeature.rst

diff --git a/src/BuildPlugin/doc/TUI_faceFeatures.rst b/src/BuildPlugin/doc/TUI_faceFeatures.rst
new file mode 100644 (file)
index 0000000..010139a
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_face:
+
+Create Face
+===========
+
+.. literalinclude:: examples/face.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/face.py>` 
+   
diff --git a/src/BuildPlugin/doc/TUI_shellFeature.rst b/src/BuildPlugin/doc/TUI_shellFeature.rst
new file mode 100644 (file)
index 0000000..6ee08c9
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_shell:
+
+Create Shell
+============
+
+.. literalinclude:: examples/shell.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/shell.py>` 
+   
diff --git a/src/BuildPlugin/doc/TUI_solidFeature.rst b/src/BuildPlugin/doc/TUI_solidFeature.rst
new file mode 100644 (file)
index 0000000..e82ba11
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_solid:
+
+Create Solid
+============
+
+.. literalinclude:: examples/solid.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/solid.py>` 
+   
diff --git a/src/BuildPlugin/doc/TUI_wireFeature.rst b/src/BuildPlugin/doc/TUI_wireFeature.rst
new file mode 100644 (file)
index 0000000..d22d216
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_wire:
+
+Create Wire
+===========
+
+.. literalinclude:: examples/wire.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/wire.py>` 
+   
diff --git a/src/BuildPlugin/doc/examples/face.py b/src/BuildPlugin/doc/examples/face.py
new file mode 100644 (file)
index 0000000..fd53041
--- /dev/null
@@ -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 (file)
index 0000000..7a978c5
--- /dev/null
@@ -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 (file)
index 0000000..30b690b
--- /dev/null
@@ -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 (file)
index 0000000..36497d8
--- /dev/null
@@ -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()
index 2cfcd473ad31fd121be031d5ea5aa43a7e7edafe..0eb6c65e1cfadaf74c5cd2d66b17c348a2925894 100644 (file)
@@ -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.
index 2f31c2b63dde41f92036029d84d4742da09c1148..3d4b980ff2f095f401275592c4a5499d0622683b 100644 (file)
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 (file)
index 0000000..9601a79
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 (file)
index 0000000..3622ab4
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 (file)
index 0000000..830283a
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 (file)
index 0000000..c773dd6
Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateWire.png differ
index 5bae9ac178d2d3a883c1cace9b957feb849c1916..64cdf06543458e406308989d777c1559af16e3f2 100644 (file)
Binary files a/src/BuildPlugin/doc/images/Face.png and b/src/BuildPlugin/doc/images/Face.png differ
index 2f552b7ca8b587222cb74bac0225bf35a95daa00..b16eda7a2fb390c395880b19396dac65e605b0b9 100644 (file)
Binary files a/src/BuildPlugin/doc/images/Shell.png and b/src/BuildPlugin/doc/images/Shell.png differ
index 7af53995e7218c360dbef384b97e709ae1535dd1..1c6894d5b9323fb0ff6850a3c1419e82fa393821 100644 (file)
Binary files a/src/BuildPlugin/doc/images/Solid.png and b/src/BuildPlugin/doc/images/Solid.png differ
index 4b18932af987271466f5fb331c8799e4fdf69d0f..d147495d8ebb17df98b25f41b180467c9a348396 100644 (file)
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 (file)
index 0000000..08ba004
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 (file)
index 0000000..5537375
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 (file)
index 0000000..84dca6b
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 (file)
index 0000000..28fa025
Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_wire.png differ
index 8c6266564fcf3365a9240a1b3bec45da2cb4ab26..c7bff096603a6d130cf348d3d95fb152579eb966 100644 (file)
@@ -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.
index 4e78a14302148229379ff7ddfb34087c93d8b72c..41d55300a87429e69f9f407e3109237822b42447 100644 (file)
@@ -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.
index a7b22081aaa88573c2343e5fd660821fb568a88f..17c560910ee7c1218f10d89648f7c8d339499f3f 100644 (file)
@@ -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.