Wire.fillet with line+circle results in incorrect fillet direction
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
When adding a fillet to a (line + circle) connected edge, the fillet occasionally goes the wrong direction, resulting in a very awkward sharp angle.
The following code reproduces on cadquery-2.5.2 and cadquery-ocp-7.7.2:
```
def clearPendingWires(workplane):
workplane.ctx.pendingWires = []
return workplane
(
cq.Workplane("XY")
# Create the 2d shape.
.lineTo(1, 0)
.threePointArc((2, 0.75), (3.0, 0))
.lineTo(4, 0)
.lineTo(4, 2)
.threePointArc((2, 3), (0, 2))
.close()
.export("before_fillet.dxf")
.invoke(clearPendingWires)
# Perform a 2d fillet. This is where the issue occurs.
.map(lambda w: w.fillet(0.25))
.export("after_fillet.dxf")
)
```
before_fillet.dxf:

after_fillet.dxf:

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.