ConstJudge one layered build-up: its layers, its finishes, and its total.
The checks fall into three groups the requirement names separately. Layer conflicts are contradictions inside a layer: a cavity that carries a substance, a solid with no thickness, a substance id that resolves to nothing. Finish defects are contradictions between the stack and the faces it presents: an exposed face with nothing finishing it, a finish laid over another finish, a finish buried where it will never be seen, a finish spent on a concealed face. Dimension conflicts are contradictions with the host: a build-up whose layers do not sum to the thickness the host was drawn at.
A single-layer stack presents both faces with the same layer, so its finish answers for whichever of them is exposed rather than being demanded twice.
A wrapping layer must belong to the run of wrapping layers starting at one
face; one behind a non-wrapping layer is refused. Ids must be non-blank and
unique within the assembly, the axis, sense, exposures and substances must
be known words, the offset finite, and at least one layer present. Every
finding is reported at once with a $input path, and none throws. With
host, the summed thickness must equal the host's within 1e-9 m; with
substances, every non-cavity layer's material must name one of them by id.
Layered build-up to judge.
Optionalhost?: IAutoMovieAssemblyHostHost dimension the layers must sum to; omitted skips the comparison.
Optionalsubstances?: readonly IAutoMovieMaterialSubstance[]Substances the layers may cite; omitted skips reference resolution.
The placed layers, the total and the assembly's signed extent.
Place a validated build-up on the host's own signed measuring line.
This is the step that makes a build-up a dimension rather than a list. The first layer's outer face starts at IAutoMovieMaterialAssembly.offset, each layer advances along the stacking axis in the declared sense, and the summed thickness is the overall dimension the host must be drawn at. A caller that sizes a wall from
totaland cuts an opening through it can then ask autoMovieAssemblyOpeningReveal what the opening finishes at.An invalid build-up is refused here rather than resolved into numbers that look usable, the same way a built environment refuses to lower.
Positions are signed metres along the host axis. Negative sense makes a positive-thickness layer advance downward; zero-thickness membranes or rounded increments can have equal endpoints.
extentorders the assembly ends.totalsums thicknesses and the overallendis offset plus signed total, which can differ from the final accumulated layer end by rounding. Failed validation throws anErrornaming its first finding.