pub fn compute_nines_geometry_for_parts(
parts_vec: &[PartState],
cached_parts: &[CachedPartData],
cell_meta_per_part: &[f32],
raw_vertex_deform: &[DeformSlot<RawVertexDeform>],
coordinate_system: SsCoordinateSystem,
out: &mut NinesBuffers,
)Expand description
Builds this frame’s Nine-Slice geometry for every nines part — the runtime
side of SsNines, driven by the part’s authored margins / fill mode and the
pose’s size and Cell.
Positions land in the same local-space box the quad path produces (pivot,
image flip and Y-Up/Y-Down already applied), so a Player only multiplies
them by the world matrix. UVs are cellmap texture-pixel coordinates, and
box_coords carry each vertex’s fraction inside the part box so per-corner
PartColor interpolates the same way shape_vertex_box_coords drives it.
A part flip mirrors the box coordinates rather than the UVs: a nine-slice has asymmetric margins, so mirroring the sampling alone would squeeze the far margin into the near slice instead of mirroring the drawn box.