#[non_exhaustive]pub struct EncodedMeshInfo {
pub encoding_method: i32,
pub bitstream_version: (u8, u8),
pub traversal: Option<EdgebreakerTraversal>,
pub speed: i32,
pub single_connectivity: bool,
pub num_encoded_faces: usize,
pub num_encoded_points: usize,
pub attributes: Vec<EncodedAttributeInfo>,
}encoder only.Expand description
Geometry shape, encoder choices and attribute metadata produced by a successful mesh encode.
The encoder decides several things the caller does not state: the connectivity coder, the EdgeBreaker traversal, whether attributes share one connectivity, and a prediction scheme per attribute. Everything it resolved is reported here, so “what did this encode actually do” is answerable without re-deriving the selection rules or parsing the stream back.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.encoding_method: i32Numeric Draco mesh encoding method used for the output.
bitstream_version: (u8, u8)Bitstream version written, after the default was substituted for an unset one.
traversal: Option<EdgebreakerTraversal>EdgeBreaker traversal written, or None for sequential connectivity.
speed: i32Speed the choices above were made at, after encoding_speed and
decoding_speed were resolved into one value.
single_connectivity: boolWhether every attribute shared the position’s connectivity. When false, attributes with seams were encoded against their own corner tables.
num_encoded_faces: usizeNumber of faces encoded into the bitstream.
num_encoded_points: usizeNumber of points encoded into the bitstream.
attributes: Vec<EncodedAttributeInfo>Per-attribute information captured during encoding.