Skip to content

Boolean demo: the sphere centred in the cube - #289

Merged
andrewbartels1 merged 4 commits into
mainfrom
demo/boolean-centred
Nov 30, 2026
Merged

andrewbartels1 merged 4 commits into
mainfrom
demo/boolean-centred

Conversation

@andrewbartels1

Copy link
Copy Markdown
Owner

The boolean logic demo now centres a sphere of radius 25 in the 40 mm cube, so only its six caps stand out of the faces and the cube's corners and edges stand out past the sphere. Every boolean has an exact volume, measured in SolidWorks 2026:

Boolean Expected Measured
Union 74,995.6 mm³ 74,995.4 mm³
Cube minus sphere 9,545.7 mm³ 9,545.8 mm³
Sphere minus cube (six caps) 10,995.6 mm³ 10,995.4 mm³
Intersection 54,454.3 mm³ 54,454.2 mm³
Exclusive or (seven bodies) 20,541.3 mm³ 20,541.1 mm³
  • Faces are coloured by surface type (flat blue, curved orange), so each result shows which body a face came from.
  • The exclusive or's six caps are pulled 15 mm out along their faces' normals, so the seven pieces can be seen; verify_model checks seven bodies.
  • The demo gets a 20-minute timeout, like the other long demos.
  • Demos page: the section, table, example prompt and GIF are updated.

Test and docs only; no tool changes.

@andrewbartels1
andrewbartels1 merged commit a2d6999 into main Nov 30, 2026
16 checks passed
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

Successfully merging this pull request may close these issues.

1 participant