Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trim fails on specific wire #726

Open
gumyr opened this issue Oct 4, 2024 · 0 comments
Open

trim fails on specific wire #726

gumyr opened this issue Oct 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gumyr
Copy link
Owner

gumyr commented Oct 4, 2024

from build123d import *
from ocp_vscode import show


with BuildSketch() as t1:
    with BuildLine():
        l1 = Polyline((10, 20), (-20, 20), (-20, -20), (10, -20))
        RadiusArc(l1 @ 0, l1 @ 1, 25)
    make_face()
arc = RadiusArc((10, 20), (10, -20), 25)
outside_curve = t1.sketch.edges().sort_by(Axis.X)[-1]
# outside_curve = arc.edge()
offset_curve = outside_curve.offset_2d(10, side=Side.RIGHT, closed=False)
show(outside_curve, offset_curve)
trimmed_curve = offset_curve.trim(0.2, 1)

trim fails when outside_curve is created from the sketch but not when directly from RadiusArc.

@gumyr gumyr added the bug Something isn't working label Oct 4, 2024
@gumyr gumyr added this to the Not Gating Release 1.0.0 milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant