From: vsv Date: Mon, 13 Aug 2018 15:38:09 +0000 (+0300) Subject: Create Build/Vertex help page X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2681b9dd0754a9552e63af74b00ced892e6f2471;p=modules%2Fshaper.git Create Build/Vertex help page --- diff --git a/src/BuildPlugin/doc/TUI_edgeFeature.rst b/src/BuildPlugin/doc/TUI_edgeFeature.rst new file mode 100644 index 000000000..11671f2c4 --- /dev/null +++ b/src/BuildPlugin/doc/TUI_edgeFeature.rst @@ -0,0 +1,12 @@ + + .. _tui_create_edge: + +Create Edge +=========== + +.. literalinclude:: examples/edge.py + :linenos: + :language: python + +:download:`Download this script ` + diff --git a/src/BuildPlugin/doc/edgeFeature.rst b/src/BuildPlugin/doc/edgeFeature.rst index 707e74219..b16c72b19 100644 --- a/src/BuildPlugin/doc/edgeFeature.rst +++ b/src/BuildPlugin/doc/edgeFeature.rst @@ -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 index 000000000..38f025468 --- /dev/null +++ b/src/BuildPlugin/doc/examples/edge.py @@ -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 index 000000000..2f31c2b63 Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateEdge.png differ diff --git a/src/BuildPlugin/doc/images/Edge.png b/src/BuildPlugin/doc/images/Edge.png index b04cc69ec..7f714594a 100644 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 index 000000000..577cc253b Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_edge.png differ