1 .. |chamfer.icon| image:: images/chamfer.png
8 **Chamfer** feature creates chamfers on the edges or on the faces of a shape.
10 To create a Chamfer in the active part:
12 #. select in the Main Menu *Feature - > Chamfer* item or
13 #. click |chamfer.icon| **Chamfer** button in the toolbar
15 There are 2 types of chamfer:
17 .. image:: images/chamfer_distances.png
21 chamfer by two distances
23 .. image:: images/chamfer_dist_angle.png
27 chamfer by a distance and an angle
29 --------------------------------------------------------------------------------
31 Chamfer by two distances
32 ------------------------
34 The property panel is shown below.
36 .. image:: images/ChamferDistances.png
40 Chamfer by two distances property panel
44 - **Faces or/and edges** panel contains chamfered faces and edges. All edges of a face are subject to chamfer operation. Faces and edges are selected in 3D OCC viewer;
45 - **D1** define the first chamfer distance;
46 - **D2** define the second chamfer distance;
50 .. py:function:: model.addChamfer(Part_doc, [face,edge], perfomDistances, D1, D2)
52 :param part: The current part object.
53 :param list: A list of faces and edges subject to fillet operation in format *model.selection(TYPE, shape)*.
54 :param boolean: A "True" flag to indicate that the type of chamfer is by two distances.
55 :param number: D1 value.
56 :param number: D2 value.
57 :return: Created object.
62 Result of **Chamfer by two distances** is shown below.
64 .. image:: images/chamfer_res_distances.png
68 Chamfer by two distances
70 **See Also** a sample TUI Script of :ref:`tui_create_chamfer1` operation.
72 Chamfer by a distance and an angle
73 ----------------------------------
75 Alternatively, there is a possibility to create a chamfer with a distance and an angle.
77 .. image:: images/ChamferDistAngle.png
81 Chamfer by a distance and an angle
85 - **Faces or/and edges** panel contains filleted faces and edges. All edges of a face are subject to fillet operation. Faces and edges are selected in 3D OCC viewer;
86 - **D** defines the chamfer distance;
87 - **Angle** defines the chamfer angle.
91 .. py:function:: model.addChamfer(Part_doc, [face,edge], perfomDistances, D, Angle)
93 :param part: The current part object.
94 :param list: A list of faces and edges subject to fillet operation in format *model.selection(TYPE, shape)*.
95 :param boolean: A "False" flag to indicate that the type of chamfer is by a distance and an angle.
96 :param number: D value.
97 :param number: Angle value.
98 :return: Created object.
103 Result of **Chamfer by a distance and an angle** is shown below.
105 .. image:: images/chamfer_res_dist_angle.png
109 Chamfer by a distance and an angle
111 **See Also** a sample TUI Script of :ref:`tui_create_chamfer2` operation.