draco/docs/spec/attributes.decoder.md
Frank Galligan 4efc3d27cc Update bitstream spec
This PR is associated with #134.
2017-07-22 22:35:54 -07:00

807 B

Attributes Decoder

DecodeAttributesDecoderData()

DecodeAttributesDecoderData(buffer) {
  num_attributes                                                        varUI32
  point_attribute_ids_.resize(num_attributes);
  for (i = 0; i < num_attributes; ++i) {
    att_type                                                            UI8
    data_type                                                           UI8
    components_count                                                    UI8
    normalized                                                          UI8
    custom_id                                                           UI16
    Initialize GeometryAttribute ga
    att_id = pc->AddAttribute(new PointAttribute(ga));
    point_attribute_ids_[i] = att_id;
}

{:.draco-syntax }