]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Create Build/Vertex help page
authorvsv <vsv@opencascade.com>
Mon, 13 Aug 2018 15:38:09 +0000 (18:38 +0300)
committervsv <vsv@opencascade.com>
Mon, 13 Aug 2018 15:38:09 +0000 (18:38 +0300)
src/BuildPlugin/doc/TUI_edgeFeature.rst [new file with mode: 0644]
src/BuildPlugin/doc/edgeFeature.rst
src/BuildPlugin/doc/examples/edge.py [new file with mode: 0644]
src/BuildPlugin/doc/images/CreateEdge.png [new file with mode: 0644]
src/BuildPlugin/doc/images/Edge.png
src/BuildPlugin/doc/images/feature_edge.png [new file with mode: 0644]

diff --git a/src/BuildPlugin/doc/TUI_edgeFeature.rst b/src/BuildPlugin/doc/TUI_edgeFeature.rst
new file mode 100644 (file)
index 0000000..11671f2
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_edge:
+
+Create Edge
+===========
+
+.. literalinclude:: examples/edge.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/edge.py>` 
+   
index 707e74219f9c3e3043e773058bdc35ca97ad8f3e..b16c72b1921e6ab1a2466804bceaf17fbfe2990e 100644 (file)
@@ -2,9 +2,37 @@
 Edge
 ====
 
+To create edges in the active part:
+
+#. select in the Main Menu *Build - > Edge* item  or
+#. click **Edge** button in the toolbar
+
+.. image:: images/feature_edge.png
+  :align: center
+
+.. centered::
+  **Edge** button
+  
+The following property panel will be opened:
 
 .. image:: images/Edge.png
   :align: center
 
 .. centered::
-  Create an edge
+  Create edges
+
+Select one or several edges in viewer.
+
+**Apply** button creates edges.
+
+**Cancel** button cancels operation. 
+
+The result of the operation will be set of vertices created from selected shapes:
+
+.. image:: images/CreateEdge.png
+  :align: center
+
+.. centered::
+  Result of the operation.
+
+**See Also** a sample TUI Script of a :ref:`tui_create_edge` operation.
diff --git a/src/BuildPlugin/doc/examples/edge.py b/src/BuildPlugin/doc/examples/edge.py
new file mode 100644 (file)
index 0000000..38f0254
--- /dev/null
@@ -0,0 +1,15 @@
+# -*- 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)
+Edge_1_objects = [model.selection("EDGE", "Box_1_1/Front&Box_1_1/Top"),
+                  model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"),
+                  model.selection("EDGE", "Box_1_1/Front&Box_1_1/Left")]
+Edge_1 = model.addEdge(Part_1_doc, Edge_1_objects)
+model.do()
+model.end()
diff --git a/src/BuildPlugin/doc/images/CreateEdge.png b/src/BuildPlugin/doc/images/CreateEdge.png
new file mode 100644 (file)
index 0000000..2f31c2b
Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateEdge.png differ
index b04cc69ec14ddb9309601a5560465b961d01297d..7f714594a7846fd9476575c4ad2c880c0459b523 100644 (file)
Binary files a/src/BuildPlugin/doc/images/Edge.png and b/src/BuildPlugin/doc/images/Edge.png differ
diff --git a/src/BuildPlugin/doc/images/feature_edge.png b/src/BuildPlugin/doc/images/feature_edge.png
new file mode 100644 (file)
index 0000000..577cc25
Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_edge.png differ