6 .. |box.icon| image:: images/box.png
8 Box feature creates a box solid.
10 To create a Box in the active part:
12 #. select in the Main Menu *Primitives - > Box* item or
13 #. click |box.icon| **Box** button in the toolbar:
15 There are 2 algorithms for creation of a Box:
17 .. image:: images/box_dxyz_32x32.png
23 .. image:: images/box_2pt_32x32.png
29 --------------------------------------------------------------------------------
34 Box is created by dimensions along X, Y, Z axis starting from the origin.
36 .. image:: images/Box_dimensions.png
41 - **DX**, **DY**, **DZ** define dimensions of the box along the corresponding coordinate axes.
45 .. py:function:: model.addBox(Part_doc, DX, DY, DZ)
47 :param part: The current part object.
48 :param real: Size along X.
49 :param real: Size along Y.
50 :param real: Size along Z.
51 :return: Result object.
56 A solid box based on the origin of coordinates and with edges parallel to the coordinate axes.
58 .. image:: images/Box1.png
61 **See Also** a sample TUI Script of a :ref:`tui_create_boxdim` operation.
66 Box is created by two points of the box diagonal.
68 .. image:: images/Box_2points.png
73 - **Point 1** and **Point 2** define diagonal points of the box selected in 3D OCC viewer or object browser.
77 .. py:function:: model.addBox(Part_doc, point1, point2)
79 :param part: The current part object.
80 :param object: First vertex of diagonal.
81 :param object: Second vertex of diagonal.
82 :return: Result object.
84 **Arguments**: Part + 2 selected points (opposite vertices of the box)
89 A solid box based on two points and with edges parallel to the coordinate axes.
91 .. image:: images/Box2.png
97 **See Also** a sample TUI Script of :ref:`tui_create_boxpnt` operation.