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

Function fillet

cadquery/occ_impl/shapes.py:6860–6880  ·  view source on GitHub ↗

Fillet selected edges in a given shell or solid.

(
    s: Shape,
    edges: Shape,
    r: float,
    history: History | None = None,
    name: str | None = None,
)

Source from the content-addressed store, hash-verified

6858
6859
6860def fillet(
6861 s: Shape,
6862 edges: Shape,
6863 r: float,
6864 history: History | None = None,
6865 name: str | None = None,
6866) -> Shape:
6867 """
6868 Fillet selected edges in a given shell or solid.
6869 """
6870
6871 builder = BRepFilletAPI_MakeFillet(_get_one(s, ("Shell", "Solid")).wrapped,)
6872
6873 for el in _get_edges(edges.edges()):
6874 builder.Add(r, el.wrapped)
6875
6876 builder.Build()
6877
6878 _update_history(history, name, [s, edges], builder)
6879
6880 return _compound_or_shape(builder.Shape())
6881
6882
6883def chamfer(

Callers 1

test_filletFunction · 0.85

Calls 5

_get_oneFunction · 0.85
_get_edgesFunction · 0.85
_update_historyFunction · 0.85
_compound_or_shapeFunction · 0.85
edgesMethod · 0.45

Tested by 1

test_filletFunction · 0.68