Using a DAE mesh for collision

Since there is a Sync Tool, I would like to extend this script to generated convex shapes from buffer files. I don’t know if this should be an improvement of dae2collision, or an additional checkbox in the sync tool, but it would definitely be great.

I don’t know much about blender and python, so I would like to try to improve this script in Lua first. Can I just take the buffer geometry array and translate it straight into a convex shape, I won’t make a mistake here or will there be excess geometry?

The buffer of the box shape exported from Sync Tool looks like 12 triangles with 36 verticles:

{
    "name": "position",
    "type": "float32",
    "count": 3,
    "data": [
-96,0,-48,-96,0,48,-96,16,48,-96,0,-48,-96,16,48,-96,16,-48,96,16,48,-96,16,48,-96,0,48,96,16,48,-96,0,48,96,0,48,96,0,48,-96,0,48,-96,0,-48,96,0,48,-96,0,-48,96,0,-48,96,16,-48,-96,16,-48,-96,16,48,96,16,-48,-96,16,48,96,16,48,96,0,-48,-96,0,-48,-96,16,-48,96,0,-48,-96,16,-48,96,16,-48,96,16,-48,96,16,48,96,0,48,96,16,-48,96,0,48,96,0,-48
    ]
},

But the convex shape of the box looks like the 8 verticles. Do I really need for some converting here?