Accessor_max_mismatch

Hi,

we are trying open3d to covert PLY files into gltf/glb and reducing triangles percentage:

mesh_in = o3d.io.read_triangle_mesh(inputfile)
mesh_in.compute_vertex_normals()
triangles = int(round((len(mesh_in.triangles)*int(perc))/100))
mesh_smp = mesh_in.simplify_quadric_decimation(target_number_of_triangles=triangles)
o3d.io.write_triangle_mesh(outputfile, mesh_smp, write_ascii=False, compressed=True, write_vertex_normals=True, write_vertex_colors=True, write_triangle_uvs=False, print_progress=True)

The output gltf file is generated but opening it in gltf validator (https://github.khronos.org/glTF-Validator/) we have this error:

code": “ACCESSOR_MAX_MISMATCH”,
“message”: “Declared maximum value for this component (2093660) does not match actual maximum (349496).”

Some suggestion?

Thanks!

Gius