You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromcadqueryimportSketchsk1= (
Sketch()
.segment((0, 0), (1, 0))
.arc((2, 0.75), (3, 0))
.segment((4, 0))
.segment((4, 2))
.arc((2, 3), (0, 2))
.close()
.assemble()
)
sk1=sk1.vertices().fillet(0.25)
# if you want only the wire from the sketch:sk1.reset() # reset selection before selecting the wirewire1=sk1.wires().val()
or reusing the original Workplane code:
fromcadqueryimportcqfromcadquery.funcimportfacewire1= (
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()
.consolidateWires()
.val()
)
face1=face(wire1)
face1=face1.fillet2D(0.25, face1.vertices())
# to select the wire from the facewire2=face1.wires()
In both cases fillet applied to the face is working as expected.
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:
before_fillet.dxf:

after_fillet.dxf:

The text was updated successfully, but these errors were encountered: