Fillet selected edges in a given shell or solid.
(
s: Shape,
edges: Shape,
r: float,
history: History | None = None,
name: str | None = None,
)
| 6858 | |
| 6859 | |
| 6860 | def 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 | |
| 6883 | def chamfer( |