1 .. |plane_button.icon| image:: images/plane_button.png
6 Plane feature creates a new constructive plane.
8 Plane is a construction object that can be created in a part or in a partset. To create a plane:
10 #. select in the Main Menu *Construction - > Plane* item or
11 #. click |plane_button.icon| **Point** button in the toolbar
13 There are 4 algorithms for creation of a Plane:
15 .. figure:: images/plane_by_three_points_32x32.png
19 **By three points** creates a plane by three points.
21 .. figure:: images/plane_by_line_and_point_32x32.png
25 **By line and point** creates a plane by a line and a point.
27 .. figure:: images/plane_by_other_plane_32x32.png
31 **By other plane** creates a plane parallel to another plane.
33 .. figure:: images/plane_by_two_parallel_planes_32x32.png
37 **By two parallel planes** creates a plane between two parallel planes.
39 --------------------------------------------------------------------------------
44 .. figure:: images/Plane1.png
49 A plane is created by selecting three points in a viewer.
53 .. py:function:: model.addPlane(Part_doc, model.selection("VERTEX", "Box_1_1/Back&Box_1_1/Left&Box_1_1/Top"), model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Right&Box_1_1/Top"), model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Left&Box_1_1/Bottom"))
55 :param part: The current part object.
56 :param object: Vertex 1.
57 :param object: Vertex 2.
58 :param object: Vertex 3.
59 :return: Result object.
64 The Result of the operation will be a plane:
66 .. figure:: images/CreatedPlane1.png
69 **A plane by three points**
71 **See Also** a sample TUI Script of :ref:`tui_create_plane_points` operation.
77 .. figure:: images/Plane2.png
82 A plane is created by selecting a linear edge and point. It is possible to create a new plane perpendicular to the selected edge.
86 .. py:function:: model.addPlane(Part_doc, model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"), model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Right&Box_1_1/Bottom"), False)
88 :param part: The current part object.
89 :param object: A line.
90 :param object: A point.
91 :param boolean: Is perpendicular to line.
92 :return: Result object.
97 The Result of the operation will be a plane:
99 .. figure:: images/CreatedPlane2.png
104 **See Also** a sample TUI Script of :ref:`tui_create_plane_line` operation.
110 .. figure:: images/Plane3.png
115 A plane is created by selecting an already existing plane (planar face). There are following possibilities to define a new plane:
117 .. figure:: images/plane_by_distance_from_other_24x24.png
121 By distance from the selected plane.
123 .. figure:: images/plane_by_coincident_to_point_24x24.png
127 By coincidence with a point.
129 .. figure:: images/plane_by_rotation_24x24.png
133 By rotation around an edge by a specified angle.
137 .. py:function:: model.addPlane(Part_doc, model.selection("FACE", "Box_1_1/Front"), 10, False)
139 :param part: The current part object.
140 :param object: A plane.
141 :param real: An offset.
142 :param boolean: Is reverse.
143 :return: Result object.
148 The Result of the operation will be a plane parallel to already existing one:
150 .. figure:: images/CreatedPlane3.png
153 **Plane parallel to a planar face**
155 **See Also** a sample TUI Script of :ref:`tui_create_plane_plane` operation.
158 By two parallel planes
159 ----------------------
161 .. figure:: images/Plane4.png
164 **By two parallel planes**
166 A plane is created by selecting two parallel planes. A new plane will be defined between them.
170 .. py:function:: model.addPlane(Part_doc, model.selection("FACE", "Box_1_1/Left"), model.selection("FACE", "Box_1_1/Right"))
172 :param part: The current part object.
173 :param object: A plane 1.
174 :param object: A plane 2.
175 :return: Result object.
180 The Result of the operation will be a plane created between two selected planes:
182 .. figure:: images/CreatedPlane4.png
185 **Plane created between others**
187 **See Also** a sample TUI Script of :ref:`tui_create_plane_parallel` operation.