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

Improve usability of Enclosure#add_screw #7

Open
raphael-isvelin opened this issue Oct 8, 2023 · 0 comments
Open

Improve usability of Enclosure#add_screw #7

raphael-isvelin opened this issue Oct 8, 2023 · 0 comments

Comments

@raphael-isvelin
Copy link
Owner

It's a bit cumbersome to use, because it requires you to--before calling it--create a ScrewBlock only to get its size, to be able to set the correct position for the screw, as the screw is centred on (0,0). (Or to hardcode the size.)

A neat solution could be to create a new method like add_screw_on_side/line, accepting a side (e.g. UP, DOWN, LEFT, RIGHT), and a position on the line. This could, it could even determine automatically whether to use Z_TAPER_CORNER or Z_TAPER_SIDE.

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