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

Subtraction from an assembly doesn't work as expected: #901

Open
gumyr opened this issue Feb 13, 2025 · 0 comments
Open

Subtraction from an assembly doesn't work as expected: #901

gumyr opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@gumyr
Copy link
Owner

gumyr commented Feb 13, 2025

from build123d import *
from bd_warehouse.fastener import HexHeadScrew
from ocp_vscode import show_all
import timeit


screw = HexHeadScrew("M6-1", 15 * MM, simple=False)

# Algebra
cutter = Pos(X=2 * MM) * Box(15, 15, 15, align=(Align.MIN, Align.CENTER, Align.MAX))
start_time = timeit.default_timer()
al_cut_screw = screw - cutter
print(f"Algebra Time: {timeit.default_timer() - start_time:0.3f}s")

Image

The screw is unchanged.

@gumyr gumyr added the bug Something isn't working label Feb 13, 2025
@gumyr gumyr added this to the Not Gating Release 1.0.0 milestone Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant