Expand description
Stepped union of two coaxial prisms, as constant-section bands.
boolean_prisms_exact
builds a stepped union as ONE exact solid, ledges included (#120, ADR
0072). This module is the older, lighter answer to the same question:
cut the union at every height where an operand starts or stops, and
return the bands. Within a band the active operand set is constant, so
each band is a genuine prism whose section is the planar union of
whatever is active there.
Use it when bands are what you want (per-storey quantities, say); use the boolean when you want the solid. The two agree on volume, which the tests check.
Structs§
- Band
- One constant-section slab of a stepped result.
Functions§
- union_
prisms_ stepped - Decompose a coaxial union into constant-section bands, bottom to top.