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

Additional test request check faces for box in box #3

Closed
jon-proximafusion opened this issue Jan 29, 2025 · 1 comment
Closed

Additional test request check faces for box in box #3

jon-proximafusion opened this issue Jan 29, 2025 · 1 comment

Comments

@jon-proximafusion
Copy link

Can we have a test that is two cubes, one larger than the other, small cube inside large cube. boolean cut large cube with small cube

check the final gmsh object has 18 faces (duplicate surfaces at the interfaces)

6 faces on outside of big cube, 6 faces on inside of big cube and 6 faces on outside of small cube

small_box = cq.Workplane('XY').box(1,1,1)
big_box = cq.Workplane('XY').box(2,2,2).cut(small_box)

assembly = cq.Assembly()
assembly.add(small_box)
assembly.add(big_box)

then the test should be, does the gmsh model contain 18 faces

entities = gmsh.model.getentities(dim=2)

len(entities) == 18
@jmwright
Copy link
Member

Completed via #7

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