MCPcopy Index your code
hub / github.com/CadQuery/cadquery / fillet2D

Function fillet2D

cadquery/occ_impl/shapes.py:7102–7116  ·  view source on GitHub ↗

Apply a 2D fillet to a planar face.

(s: Shape, verts: Shape, r: float)

Source from the content-addressed store, hash-verified

7100
7101
7102def 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 = {

Callers 1

test_fillet2DFunction · 0.85

Calls 3

_get_oneFunction · 0.85
_compound_or_shapeFunction · 0.85
verticesMethod · 0.45

Tested by 1

test_fillet2DFunction · 0.68