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

hole in model disappears when sides are filleted #1668

Open
bigfighter opened this issue Sep 20, 2024 · 2 comments
Open

hole in model disappears when sides are filleted #1668

bigfighter opened this issue Sep 20, 2024 · 2 comments
Labels
bug Something isn't working cq.Shape

Comments

@bigfighter
Copy link

from cadquery.occ_impl.shapes import *

base = face(rect(50, 50)) - face(rect(40, 40))
base = base.fillet2D(5, base.vertices('<X')) # A
base = extrude(base, (0, 0, 5))
#base = base.fillet(0.5, base.edges('>X')) # B

from cadquery import version
print(version('cadquery'))

base # display in jypyter

if neither A nor B is commented out, then the hole disappears from the block. is this a bug?

image
image

I'm running cadquery in docker.

@adam-urbanczyk
Copy link
Member

Looks at least weird.

@adam-urbanczyk adam-urbanczyk added bug Something isn't working free func labels Sep 20, 2024
@adam-urbanczyk
Copy link
Member

adam-urbanczyk commented Nov 17, 2024

It seems to be a bug of offset2D (the returned face is invalid). Here is a workaround:

from cadquery.occ_impl.shapes import *

base = plane(50, 50)
base = base.fillet2D(5, base.vertices('<X')) - plane(40, 40) # A
base = extrude(base, (0, 0, 5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cq.Shape
Projects
None yet
Development

No branches or pull requests

2 participants