Skip to content

Commit 53624cc

Browse files
committed
Support adding a chamfer using a wire from a topology
1 parent f485a2e commit 53624cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

declaracad/occ/impl/occ_chamfer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ def chamfer_3d(self, child) -> TopoDS_Shape:
134134
if isinstance(face, TopoDS_Edge) and d1 == d2:
135135
edge = face
136136
chamfer.Add(d1, edge)
137+
elif isinstance(face, TopoDS_Wire) and d1 == d2:
138+
for edge in child.topology.edges_from_wire(face):
139+
chamfer.Add(d1, edge)
137140
elif edge is None:
138141
for edge in child.topology.edges_from_face(face):
139142
if angle:

0 commit comments

Comments
 (0)