pub struct DecodedMesh {
pub header: QuantizedMeshHeader,
pub vertices: QuantizedVertices,
pub indices: Vec<u32>,
pub edge_indices: EdgeIndices,
pub extensions: DecodedExtensions,
}Expand description
Fully owned decoded quantized-mesh data.
Fields§
§header: QuantizedMeshHeaderHeader with tile metadata.
vertices: QuantizedVerticesQuantized vertex data.
indices: Vec<u32>Triangle indices.
edge_indices: EdgeIndicesEdge indices for skirt generation.
extensions: DecodedExtensionsDecoded extensions.
Implementations§
Source§impl DecodedMesh
impl DecodedMesh
Sourcepub fn decode(data: &[u8]) -> DecodeResult<Self>
pub fn decode(data: &[u8]) -> DecodeResult<Self>
Decode a (possibly gzip-compressed) quantized-mesh byte slice into the fully owned form.
Sourcepub fn decode_from<R: Read>(reader: R) -> DecodeResult<Self>
pub fn decode_from<R: Read>(reader: R) -> DecodeResult<Self>
Decode from a Reader. The reader is fully consumed.
Trait Implementations§
Source§impl Clone for DecodedMesh
impl Clone for DecodedMesh
Source§fn clone(&self) -> DecodedMesh
fn clone(&self) -> DecodedMesh
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecodedMesh
impl RefUnwindSafe for DecodedMesh
impl Send for DecodedMesh
impl Sync for DecodedMesh
impl Unpin for DecodedMesh
impl UnsafeUnpin for DecodedMesh
impl UnwindSafe for DecodedMesh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more