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 .. figure:: images/chamfer_distances.png
21 chamfer by two distances
23 .. figure:: 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 .. figure:: images/ChamferDistances.png
39 Chamfer by two distances property panel
43 - **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;
44 - **D1** define the first chamfer distance;
45 - **D2** define the second chamfer distance;
49 .. py:function:: model.addChamfer(Part_doc, [face,edge], perfomDistances, D1, D2)
51 :param part: The current part object.
52 :param list: A list of faces and edges subject to fillet operation in format *model.selection(TYPE, shape)*.
53 :param boolean: A "True" flag to indicate that the type of chamfer is by two distances.
54 :param number: D1 value.
55 :param number: D2 value.
56 :return: Created object.
61 Result of **Chamfer by two distances** is shown below.
63 .. figure:: images/chamfer_res_distances.png
66 Chamfer by two distances
68 **See Also** a sample TUI Script of :ref:`tui_create_chamfer1` operation.
70 Chamfer by a distance and an angle
71 ----------------------------------
73 Alternatively, there is a possibility to create a chamfer with a distance and an angle.
75 .. figure:: images/ChamferDistAngle.png
78 Chamfer by a distance and an angle
82 - **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;
83 - **D** defines the chamfer distance;
84 - **Angle** defines the chamfer angle.
88 .. py:function:: model.addChamfer(Part_doc, [face,edge], perfomDistances, D, Angle)
90 :param part: The current part object.
91 :param list: A list of faces and edges subject to fillet operation in format *model.selection(TYPE, shape)*.
92 :param boolean: A "False" flag to indicate that the type of chamfer is by a distance and an angle.
93 :param number: D value.
94 :param number: Angle value.
95 :return: Created object.
100 Result of **Chamfer by a distance and an angle** is shown below.
102 .. figure:: images/chamfer_res_dist_angle.png
105 Chamfer by a distance and an angle
107 **See Also** a sample TUI Script of :ref:`tui_create_chamfer2` operation.