]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Create Build/Vertex help page
authorvsv <vsv@opencascade.com>
Mon, 13 Aug 2018 15:11:36 +0000 (18:11 +0300)
committervsv <vsv@opencascade.com>
Mon, 13 Aug 2018 15:11:36 +0000 (18:11 +0300)
.salomeport
src/BuildPlugin/doc/TUI_vertexFeature.rst [new file with mode: 0644]
src/BuildPlugin/doc/examples/vertex.py [new file with mode: 0644]
src/BuildPlugin/doc/images/CreateVertex.png [new file with mode: 0644]
src/BuildPlugin/doc/images/Vertex.png
src/BuildPlugin/doc/images/feature_vertex.png [new file with mode: 0644]
src/BuildPlugin/doc/vertexFeature.rst

index eafc9999ec16ef8f3b216683fb483af15fee8736..145d7e23cf44933d54fdfcd6026fde37619ca2a8 100644 (file)
@@ -1 +1 @@
-2811
\ No newline at end of file
+2810
\ No newline at end of file
diff --git a/src/BuildPlugin/doc/TUI_vertexFeature.rst b/src/BuildPlugin/doc/TUI_vertexFeature.rst
new file mode 100644 (file)
index 0000000..d122414
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_vertex:
+
+Create Vertex
+=============
+
+.. literalinclude:: examples/vertex.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/vertex.py>` 
+   
diff --git a/src/BuildPlugin/doc/examples/vertex.py b/src/BuildPlugin/doc/examples/vertex.py
new file mode 100644 (file)
index 0000000..ea2979b
--- /dev/null
@@ -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)
+Vertex_1_objects = [model.selection("VERTEX", "Box_1_1/Back&Box_1_1/Left&Box_1_1/Top"),
+                    model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Left&Box_1_1/Top"),
+                    model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Right&Box_1_1/Top"),
+                    model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Left&Box_1_1/Bottom"),
+                    model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Right&Box_1_1/Bottom")]
+Vertex_1 = model.addVertex(Part_1_doc, Vertex_1_objects)
+model.do()
+model.end()
diff --git a/src/BuildPlugin/doc/images/CreateVertex.png b/src/BuildPlugin/doc/images/CreateVertex.png
new file mode 100644 (file)
index 0000000..3391f09
Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateVertex.png differ
index 38143d4862918d0ae9d77ac52889ec3a4df36abd..a7a820b6673eda3e0be803b8ba4d47cc221d335e 100644 (file)
Binary files a/src/BuildPlugin/doc/images/Vertex.png and b/src/BuildPlugin/doc/images/Vertex.png differ
diff --git a/src/BuildPlugin/doc/images/feature_vertex.png b/src/BuildPlugin/doc/images/feature_vertex.png
new file mode 100644 (file)
index 0000000..62406da
Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_vertex.png differ
index dc8cb4c7524acd86148de8083b562db93f9b266d..e314d3c4ca71d8092a40e8d45b604f921f15197a 100644 (file)
@@ -2,9 +2,37 @@
 Vertex
 ======
 
+To create vertices in the active part:
+
+#. select in the Main Menu *Build - > Vertex* item  or
+#. click **Vertex** button in the toolbar
+
+.. image:: images/feature_vertex.png
+  :align: center
+
+.. centered::
+  **Vertex** button
+
+The following property panel will be opened:
 
 .. image:: images/Vertex.png
   :align: center
 
 .. centered::
-  Create a vertex
+  Create vertices
+
+Select one or several vertices in viewer.
+
+**Apply** button creates vertices.
+
+**Cancel** button cancels operation. 
+
+The result of the operation will be set of vertices created from selected shapes:
+
+.. image:: images/CreateVertex.png
+  :align: center
+
+.. centered::
+  Result of the operation.
+
+**See Also** a sample TUI Script of a :ref:`tui_create_vertex` operation.