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

rounded_box shrinks from defined size based on radius? #44

Open
jaywgraves opened this issue Dec 29, 2023 · 0 comments
Open

rounded_box shrinks from defined size based on radius? #44

jaywgraves opened this issue Dec 29, 2023 · 0 comments

Comments

@jaywgraves
Copy link

jaywgraves commented Dec 29, 2023

I am mostly certain I am not understanding the math here but in my mind a rounded_box should keep the same outer dimensions but have the corners and edges eased by a radius.

this is a contrived example I made to show the difference, I would not expect there to be a leftover band around the object.

from sdf import *
w = 50
l = 25
thick = 3
base_rad = 5
base = box((w,l,thick))
base -= rounded_box((w,l,thick),base_rad)
stl = base.generate()
write_binary_stl('test.stl', stl)

test_meshlab

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