Skip to main content

Module scenes

Module scenes 

Source
Expand description

Reusable named test scenes for the booleans test suite: pairs of solids, each built in their own fresh Part purely from basic_shapes — no dependency on any boolean/remesh machinery (all still disabled pending step-by-step revival, see mod’s own doc comment). Later revival steps grow what they do with a TestScene; for now, topology_render_test just renders each one’s raw topology, as a first check that every scene builds cleanly against the current Model API.

Two families, mirroring what the old (pre-API-change) booleans suite covered: a systematic offset grid (every relative position of two identical solids, on axis-aligned steps) and a set of hand-picked box/figure8-vs-cylinder arrangements (holes drilled through, blind holes, nested/disjoint, corner overlaps, coincident faces, etc.).

Structs§

TestScene
A named pair of solids, built together in one Part as the operations a and b, ready for whatever a boolean-revival step wants to do with them.

Functions§

all_scenes
Every scene in the suite: both grid sweeps, then both hand-picked cylinder arrangement sets.
box_cylinder_scenes
The BOX_CYLINDER_CASES arrangements, each as its own TestScene (solid_a the box, solid_b the cylinder), named box_cylinder_<case>.
box_grid_scenes
Two unit cubes: one fixed at the origin, the other swept across every combination of [-1, -0.5, 0, 0.5, 1] along each axis (125 scenes) — covering every axis-aligned relative position from fully disjoint through every partial-overlap and face/edge/corner-coincident configuration.
figure8_cylinder_scenes
The FIGURE8_CYLINDER_CASES arrangements, each as its own TestScene (solid_a the figure-8 extrusion, solid_b the cylinder), named figure8_cylinder_<case>.
map_scenes_parallel
Run f over every scene, spread across threads, and return the results in scene order.
sphere_grid_scenes
Two unit-radius spheres: one fixed at the origin, the other swept across every combination of [-0.5, 0, 0.5] along each axis, skipping the fully coincident (0, 0, 0) case (26 scenes) — that configuration is a degenerate coplanar (every point of one sphere’s surface touches the other) rather than a transversal intersection, to be handled separately.