2 .. |box.icon| image:: images/box.png
7 Box feature creates a box solid.
9 To create a Box in the active part:
11 #. select in the Main Menu *Primitives - > Box* item or
12 #. click |box.icon| **Box** button in the toolbar:
14 There are 2 algorithms for creation of a Box:
16 .. image:: images/box_2pt_32x32.png
20 .. image:: images/box_dxyz_32x32.png
28 Box is created by dimensions along X, Y, Z axis starting from the origin.
30 .. image:: images/Box_dimensions.png
35 - **DX**, **DY**, **DZ** define dimensions of the box along the corresponding coordinate axes.
39 .. py:function:: model.addBox(Part_doc, DX, DY, DZ)
41 :param part: The current part object.
42 :param real: Size along X.
43 :param real: Size along Y.
44 :param real: Size along Z.
45 :return: Result object.
50 A solid box based on the origin of coordinates and with edges parallel to the coordinate axes.
52 .. image:: images/Box1.png
55 **See Also** a sample TUI Script of a :ref:`tui_create_boxdim` operation.
60 Box is created by two points of the box diagonal.
62 .. image:: images/Box_2points.png
67 - **Point 1** and **Point 2** define diagonal points of the box selected in 3D OCC viewer or object browser.
71 .. py:function:: model.addBox(Part_doc, point1, point2)
73 :param part: The current part object.
74 :param object: First vertex of diagonal.
75 :param object: Second vertex of diagonal.
76 :return: Result object.
77 **Arguments**: Part + 2 selected points (opposite vertices of the box)
82 A solid box based on two points and with edges parallel to the coordinate axes.
84 .. image:: images/Box2.png
90 **See Also** a sample TUI Script of :ref:`tui_create_boxpnt` operation.