pub struct MeshCellData {
pub uvs: Vec<f32>,
pub rest_x: Vec<f32>,
pub rest_y: Vec<f32>,
pub indices: Vec<i32>,
}Expand description
Per-part static mesh geometry resolved from the part’s Cell.
Mesh parts may not change their cell after frame 0 (SS spec), so this is
resolved once per cell at SSAB load time and shared by every part and
animation that draws that cell. uvs are interleaved [u, v, ...] in
cellmap texture-pixel space (the cell rectangle origin is already added —
divide by the texture size to normalize). rest_x / rest_y are SoA
rest-pose positions (cell coordinate minus the cell pivot’s pixel
position, so the mesh is centred; Y-down native — same texture-pixel
space as uvs), consumed by the non-skeletal (Deform-only) mesh path.
SoA so the per-frame W · rest transform vectorizes with contiguous
loads. indices are triangle indices widened from the SSAB-side u16
table_index_vertex.
Fields§
§uvs: Vec<f32>§rest_x: Vec<f32>§rest_y: Vec<f32>§indices: Vec<i32>