--- /dev/null
+
+ .. _tui_create_boxpnt:
+
+Create Box by points
+====================
+
+.. literalinclude:: examples/box2.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/box2.py>`
--- /dev/null
+
+ .. _tui_create_boxdim:
+
+Create Box by dimensions
+========================
+
+.. literalinclude:: examples/box1.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/box1.py>`
+
+++ /dev/null
-
- .. _tui_create_box:
-
-Create Box
-==========
-
-.. literalinclude:: examples/box.py
- :linenos:
- :language: python
-
-:download:`Download this script <examples/box.py>`
-
.. _tui_create_cylinder:
-Create /Cylinder
+Create cylinder
================
-.. literalinclude:: examples/cylinder.py
+.. literalinclude:: examples/cylinder1.py
:linenos:
:language: python
-:download:`Download this script <examples/cylinder.py>`
+:download:`Download this script <examples/cylinder1.py>`
--- /dev/null
+
+ .. _tui_create_cylportion:
+
+Create portion of cylinder
+==========================
+
+.. literalinclude:: examples/cylinder2.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/cylinder2.py>`
+
By dimensions
-"""""""""""""
+-------------
Box is created by dimensions along X, Y, Z axis starting from the origin.
**Arguments**: Part + 3 real values (dimensions at origin).
+Result
+""""""
+
+A solid box based on origin and with edges parallel to the coordinate axes.
+
+.. image:: images/Box1.png
+ :align: center
+
+**See Also** a sample TUI Script of a :ref:`tui_create_boxdim` operation.
By two points
-"""""""""""""
+-------------
Box is created by two points of the box diagonal.
Result
""""""
-The edges of the created boxes are parallel to the coordinate axes.
+A solid box based on two points and with edges parallel to the coordinate axes.
-.. image:: images/Boxes.png
+.. image:: images/Box2.png
:align: center
.. centered::
Boxes created
-**See Also** a sample TUI Script of a :ref:`tui_create_box` operation.
\ No newline at end of file
+**See Also** a sample TUI Script of a :ref:`tui_create_boxpnt` operation.
**Portion of cylinder** creates one segment of cylinder.
Cylinder
-""""""""
+--------
.. image:: images/Cylinder.png
:align: center
- **Radius**;
- **Height**.
-**TUI Commands**:
-
-* *model.addCylinder(Part_doc, Point, Axis, Radius, Height)*
+**TUI Commands**: *model.addCylinder(Part_doc, Point, Axis, Radius, Height)*
**Arguments**: Part + 1 vertex +1 vector + 2 real values (radius, height).
+Result
+""""""
+
+Example is shown below.
+
+.. image:: images/Cylinder1.png
+ :align: center
+
+.. centered::
+ Cylinder
+
+**See Also** a sample TUI Script of a :ref:`tui_create_cylinder` operation.
+
Portion of cylinder
-"""""""""""""""""""
+-------------------
.. image:: images/Portion_cylinder.png
:align: center
Input fields for ***Portion of cylinder** tab includes in addition **Angle** to create a portion of cylinder.
-**TUI Commands**:
-
-* *model.addCylinder(Part_doc, Point, Axis, Radius, Height,Angle)*
+**TUI Commands**: *model.addCylinder(Part_doc, Point, Axis, Radius, Height,Angle)*
**Arguments**: 1 Part + 1 vertex +1 vector + 3 real values (radius, height and angle).
Example is shown below.
-.. image:: images/Cylinders.png
+.. image:: images/Cylinder2.png
:align: center
.. centered::
- Cylinders created
+ Portion of cylinder
-**See Also** a sample TUI Script of a :ref:`tui_create_cylinder` operation.
+**See Also** a sample TUI Script of a :ref:`tui_create_cylportion` operation.
+++ /dev/null
-# -*- 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)
-Point_2 = model.addPoint(Part_1_doc, 20, 30, 40)
-Point_3 = model.addPoint(Part_1_doc, 40, 40, 50)
-Box_2 = model.addBox(Part_1_doc, model.selection("VERTEX", "Point_1"), model.selection("VERTEX", "Point_2"))
-model.do()
-model.end()
--- /dev/null
+# -*- 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)
+model.do()
+model.end()
--- /dev/null
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Point_2 = model.addPoint(Part_1_doc, 20, 30, 40)
+Point_3 = model.addPoint(Part_1_doc, 40, 40, 50)
+Box_2 = model.addBox(Part_1_doc, model.selection("VERTEX", "Point_1"), model.selection("VERTEX", "Point_2"))
+model.do()
+model.end()
+++ /dev/null
-# -*- coding: utf-8 -*-
-
-from salome.shaper import model
-
-model.begin()
-partSet = model.moduleDocument()
-Part_1 = model.addPart(partSet)
-Part_1_doc = Part_1.document()
-Cylinder_1 = model.addCylinder(Part_1_doc, model.selection("VERTEX", "PartSet/Origin"), model.selection("EDGE", "PartSet/OZ"), 5, 10)
-Cylinder_2 = model.addCylinder(Part_1_doc, model.selection("VERTEX", "Cylinder_1_1/Face_1&Cylinder_1_1/Face_2"), model.selection("EDGE", "PartSet/OX"), 5, 10, 45)
-model.do()
-model.end()
--- /dev/null
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Cylinder_1 = model.addCylinder(Part_1_doc, model.selection("VERTEX", "PartSet/Origin"), model.selection("EDGE", "PartSet/OZ"), 5, 10)
+model.do()
+model.end()
--- /dev/null
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Cylinder_2 = model.addCylinder(Part_1_doc, model.selection("VERTEX", "Cylinder_1_1/Face_1&Cylinder_1_1/Face_2"), model.selection("EDGE", "PartSet/OX"), 5, 10, 45)
+model.do()
+model.end()