build_mesh_tables

Function build_mesh_tables 

Source
pub(super) fn build_mesh_tables(
    meshes: &[MeshData],
    plan: &ShapePlan,
    layout: ParquetLayout,
    base_vertex_offset: u32,
    base_index_offset: u32,
) -> Result<(RecordBatch, RecordBatch, RecordBatch), ParquetError>
Expand description

Build the three Arrow tables (mesh metadata / vertices / indices) for a slice of meshes under plan. base_vertex_offset / base_index_offset seed the mesh-table vertex_start / index_start columns so an incremental caller (the streaming cache writer) emits GLOBAL whole-model offsets while the per-batch client blobs keep batch-local ones (bases 0/0). The Z-up to Y-up transform lives here, in one place, for both paths.