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§
- Test
Scene - A named pair of solids, built together in one
Partas the operationsaandb, 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_CASESarrangements, each as its ownTestScene(solid_athe box,solid_bthe cylinder), namedbox_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_CASESarrangements, each as its ownTestScene(solid_athe figure-8 extrusion,solid_bthe cylinder), namedfigure8_cylinder_<case>. - map_
scenes_ parallel - Run
fover 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.