Apply a 2D fillet to a planar face.
(s: Shape, verts: Shape, r: float)
| 7100 | |
| 7101 | |
| 7102 | def fillet2D(s: Shape, verts: Shape, r: float) -> Shape: |
| 7103 | """ |
| 7104 | Apply a 2D fillet to a planar face. |
| 7105 | """ |
| 7106 | |
| 7107 | f = _get_one(s, "Face") |
| 7108 | |
| 7109 | bldr = BRepFilletAPI_MakeFillet2d(tcast(TopoDS_Face, f.wrapped)) |
| 7110 | |
| 7111 | for v in verts.vertices(): |
| 7112 | bldr.AddFillet(tcast(TopoDS_Vertex, v.wrapped), r) |
| 7113 | |
| 7114 | bldr.Build() |
| 7115 | |
| 7116 | return _compound_or_shape(bldr.Shape()) |
| 7117 | |
| 7118 | |
| 7119 | _trans_mode_dict = { |