+
Skip to content

rounded_box shrinks from defined size based on radius? #44

@jaywgraves

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

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载