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

mirror() Creates ghost geometry #902

Open
jwagenet opened this issue Feb 13, 2025 · 0 comments
Open

mirror() Creates ghost geometry #902

jwagenet opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working occt A bug with the OpenCascade CAD core

Comments

@jwagenet
Copy link

mirror(Plane.XY) creates ghost geometry in my example, which add volume to the part and render as selectable faces in ocp_vscode. As discussed on discord, this may be due to Open-Cascade-SAS/OCCT#26

Originally, this was to report where the combination of the previous fillet(ppp0110... , 8) and the mirror(Plane.XY) caused the entire operation to silently fail, but I was unable to reproduce in 0.9.0.

with BuildPart() as ppp0110:
    with BuildSketch(Plane.YZ) as s:
        with BuildLine() as l:
            JernArc((0, 0), (1, 0), 40, 90)
            Line((0, 46), (42, 46))
        make_hull()

    with BuildSketch(Plane.YZ) as s2:
        arc = s.edges().sort_by(Axis.Y)[:-1].sort_by(Axis.X)[1:]
        make_face(offset(arc, amount=8, side=Side.LEFT))
        Rectangle(46, 16, align=Align.MIN)
        add(s, mode=Mode.INTERSECT)

    extrude(s2.sketch, amount=100 / 2)
    fillet(ppp0110.faces().filter_by(Plane.XY).sort_by(Axis.Y)[0].edges().sort_by(Axis.Y)[-1], 8)
    revolve(ppp0110.faces().sort_by(Axis.X)[0], axis=Axis.Z, revolution_arc=90)
    mirror(about=Plane.YZ.offset(100 / 2))
    # This fails but it should work
    mirror(about=Plane.XZ)

show(ppp0110)

Image

@gumyr gumyr added occt A bug with the OpenCascade CAD core bug Something isn't working labels Feb 20, 2025
@gumyr gumyr added this to the Not Gating Release 1.0.0 milestone Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working occt A bug with the OpenCascade CAD core
Projects
None yet
Development

No branches or pull requests

2 participants