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

Documentation and behavior mismatch in Workplane.extrude #1544

Open
uchan-nos opened this issue Mar 22, 2024 · 0 comments
Open

Documentation and behavior mismatch in Workplane.extrude #1544

uchan-nos opened this issue Mar 22, 2024 · 0 comments

Comments

@uchan-nos
Copy link

The documentation of Workplane.extrude says that until="next" extrudes until the next face orthogonal to the wire normal, but the actual behavior seems to be different. In my experiment, an inclined face can be used as the target of "next".

In my opinion, this behavior is useful, so the documentation should be fixed.

Test code:

import cadquery as cq
p = cq.Plane(origin=(0, 0, 10), normal=(0.3, 0, 1))
top_plate = cq.Workplane(p).box(20, 5, 1)
result = (
    cq.Workplane()
    .rect(10, 4)
    .add(top_plate)
    .extrude("next")
)
show_object(result)

Result:
extrude-until-non-orthogonal-face

@uchan-nos uchan-nos changed the title Workplane.extrude can extrude a wire to a non-orthogonal face. Documentation and behavior mismatch in Workplane.extrude Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant