DracoPy icon indicating copy to clipboard operation
DracoPy copied to clipboard

tex_coord data compression doesn't work

Open Rouen007 opened this issue 2 years ago • 1 comments

I used the following two pieces of code to judge the encoding performance of tex_coord data: binary1 = DracoPy.encode(pos_data, face_data, preserve_order=True) binary2 = DracoPy.encode(pos_data, face_data, tex_coord=np.array(tex_data), preserve_order=True)

and tex_coord is list (29753 size) which is 29753 x 2 x 4 = 238024 Bytes

and I found that binary1's size is 245450 bytes and binary2's size is 483480 bytes. so I could have the conclusion that the tex_coord data of the whole data is 483480-245450=238030 Bytes

After encoding is capacity of tex_coord part is greater to the original part 6 Bytes, which is rather confusing. I' ve no idea why, could you help me.

Rouen007 avatar Mar 14 '24 03:03 Rouen007

Hi there, I'm not quite sure why that would be, but I don't currently have time to investigate this. If anyone is able to figure it out, PRs are welcome!

william-silversmith avatar Mar 14 '24 05:03 william-silversmith