Turn whole occurrences into computed instance slots and name the ones that
cannot be.
A repeated module is a GPU instance, never duplicated vertex data, so the
whole modules leave here as explicit full-TRS slots: the occurrence id
becomes the slot id, the in-plane rotation becomes a real unit quaternion
rather than a yaw, and the module's two face dimensions plus its thickness
become a per-axis scale rather than a uniform one. A prototype table, when
given, is indexed by the occurrence's own seeded variant, so the variation
the run drew is the variation the instancer draws.
A cut piece is not an instance and is not pretended to be one. Scaling a
whole module down to a cut piece's bounding box would render a tile that is
the wrong shape and the wrong size, so cut occurrences are returned by id for
the caller to build as geometry.
The prototype's local +X maps to the module's U extent, local +Y to its V
extent, and local +Z to the face normal, which is u × v.
A host that folds at a corner or curves is one developed face standing on
several flat panels, so a zone may name its own IAutoMoviePatternFacet
and every zone that does not stays on frame.
Throws when the thickness is not a finite positive number, a frame or facet
value is not finite, an axis is not unit length or the two axes are not
perpendicular within 1e-6, a facet names a zone the run did not lay or
repeats one, or an occurrence's variant has no entry in prototypes.
Turn whole occurrences into computed instance slots and name the ones that cannot be.
A repeated module is a GPU instance, never duplicated vertex data, so the whole modules leave here as explicit full-TRS slots: the occurrence id becomes the slot id, the in-plane rotation becomes a real unit quaternion rather than a yaw, and the module's two face dimensions plus its thickness become a per-axis scale rather than a uniform one. A prototype table, when given, is indexed by the occurrence's own seeded variant, so the variation the run drew is the variation the instancer draws.
A cut piece is not an instance and is not pretended to be one. Scaling a whole module down to a cut piece's bounding box would render a tile that is the wrong shape and the wrong size, so cut occurrences are returned by id for the caller to build as geometry.
The prototype's local
+Xmaps to the module's U extent, local+Yto its V extent, and local+Zto the face normal, which isu × v.A host that folds at a corner or curves is one developed face standing on several flat panels, so a zone may name its own IAutoMoviePatternFacet and every zone that does not stays on frame.
Throws when the thickness is not a finite positive number, a frame or facet value is not finite, an axis is not unit length or the two axes are not perpendicular within
1e-6, a facet names a zone the run did not lay or repeats one, or an occurrence's variant has no entry inprototypes.