Skip to main content

parse_lod_level

Function parse_lod_level 

Source
pub fn parse_lod_level(
    buffer: &[u8],
    level_offsets: &[usize],
    level: usize,
) -> Result<Mesh, LodChainError>
Expand description

Parse a specific LOD level from a serialized LOD chain buffer.

The level_offsets are the byte offsets of each LOD section within the buffer (as reported by LodChainReport). Returns the decoded Mesh.