#[non_exhaustive]pub struct EncodedAttributeInfo {
pub source_attribute_id: i32,
pub attribute_type: GeometryAttributeType,
pub data_type: DataType,
pub num_components: u8,
pub normalized: bool,
pub unique_id: u32,
pub num_encoded_values: usize,
pub encoder_type: SequentialAttributeEncoderType,
pub quantization_bits: Option<i32>,
pub prediction: Option<(PredictionSchemeMethod, PredictionSchemeTransformType)>,
pub position_min: Option<Vec<f64>>,
pub position_max: Option<Vec<f64>>,
}encoder only.Expand description
Attribute metadata produced by a successful mesh encode.
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.source_attribute_id: i32Source attribute id in the input mesh.
attribute_type: GeometryAttributeTypeSemantic type of the encoded attribute.
data_type: DataTypeScalar data type of the encoded attribute.
num_components: u8Number of scalar components per encoded value.
normalized: boolWhether integer values are normalized.
unique_id: u32Draco unique id assigned to the attribute.
num_encoded_values: usizeNumber of unique values encoded for the attribute.
encoder_type: SequentialAttributeEncoderTypePer-attribute encoder the values went through, which is what decides whether the two fields below are populated.
quantization_bits: Option<i32>Quantization bits applied, or None when the attribute was not
quantized. A quantization_bits option set on an integer or generic
attribute is ignored by the encoder and reported as None here.
prediction: Option<(PredictionSchemeMethod, PredictionSchemeTransformType)>Prediction scheme and transform the encoder settled on, or None when
the attribute never reached the integer path. This is the resolved
choice, not the request: several schemes fall back to Difference when
the attribute or the mesh cannot support them.
position_min: Option<Vec<f64>>Minimum position components when known for position attributes.
position_max: Option<Vec<f64>>Maximum position components when known for position attributes.