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

Support the anchor argument from BOSL2, if it makes sense #151

Open
DeflateAwning opened this issue Nov 19, 2023 · 1 comment
Open

Support the anchor argument from BOSL2, if it makes sense #151

DeflateAwning opened this issue Nov 19, 2023 · 1 comment

Comments

@DeflateAwning
Copy link

Just wanted to move the discussion from bschwind/key-ripper#55 over here!

The anchor argument from BOSL2 allows you to specify which side/face is at the origin when constructing elementary elements (e.g., cylinders, cuboids, etc).

For example, cuboid([width, length, height], anchor=CENTER); creates a cuboid (rectangular prism) with its center at the origin, while cuboid([width, length, height], anchor=BOTTOM); creates a cuboid with that is centered, but with its bottom face at the origin.

It's possible you created a different, ergonomic way of creating things like this, but I just wanted to bring this up. Haven't had a chance to delve deep otherwise though. Seems like an awesome project!

@bschwind
Copy link
Owner

Ohhh, I see! I think it would be fairly easy to provide an anchor-based API for primitive construction. I'll keep that in mind as I develop this crate more :)

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

2 participants