You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would make sense to be able to get the resulting faces and points count from the encode_mesh_to_buffer method.
Currently I am writing a tool to create gltf files from mesh sequences and there I am adding mesh compression with this library. To correctly set the faces and vertices count, I need to know them after the compression. What I do as a workaround is just decode it after encoding, but this is a bit a waste of time and resources:
encoded_blob=bytearray(DracoPy.encode_mesh_to_buffer(encoded_points, encoded_triangles))
# workaorund to get point & faces size backdecoded=DracoPy.decode_buffer_to_mesh(encoded_blob)
triangles_size=len(decoded.faces)
pts_size=int(len(decoded.points) /3)
Would it be possible to somehow return them?
The text was updated successfully, but these errors were encountered:
william-silversmith
changed the title
Encoding does not return resulting faces and points count
Decoding does not return resulting faces and points count
Oct 22, 2021
william-silversmith
changed the title
Decoding does not return resulting faces and points count
Encoding does not return resulting faces and points count
Oct 22, 2021
I think it would make sense to be able to get the resulting faces and points count from the
encode_mesh_to_buffer
method.Currently I am writing a tool to create gltf files from mesh sequences and there I am adding mesh compression with this library. To correctly set the faces and vertices count, I need to know them after the compression. What I do as a workaround is just decode it after encoding, but this is a bit a waste of time and resources:
Would it be possible to somehow return them?
The text was updated successfully, but these errors were encountered: