Skip to content

rounded_box shrinks from defined size based on radius? #44

Description

@jaywgraves

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions