Assertion error on line 5166
HeraclitusDevotee opened this issue · 2 comments
HeraclitusDevotee commented
I'm getting this assertion error: i < m_dim[0] && i >= 0 && j < m_dim[1] && j >= 0 && k < m_dim[2] && k >= 0
Any information on the cause of this would be appreciated.
jratcliff63367 commented
That would be a bug. Can you please give me a repro case? Meaning a Wavefront OBJ file and the exact parameters you used?
HeraclitusDevotee commented
My mistake, I was using mesh data from a GLTF file, which I falsely assumed would have compatible values. Upon comparing the data from the two file types I realized the problem (here is sample data from a cube):
OBJ Verts | GLTF Verts | OBJ Index | GLTF Index |
-100 | -1 | 1 | 3 |
-100 | 0 | 2 | 6 |
100 | -0 | 0 | 0 |
-100 | -100 | 3 | 10 |
100 | -100 | 6 | 19 |
100 | 100 | 2 | 8 |
-100 | 0.375 | 7 | 23 |
-100 | 1 | 4 | 14 |
-100 | 0 | 6 | 20 |
-100 | -1 | 5 | 15 |
100 | -0 | 0 | 2 |
-100 | -100 | 4 | 13 |
100 | -100 | 6 | 18 |
-100 | 100 | 0 | 1 |
100 | 0.125 | 2 | 7 |
100 | 0.25 | 3 | 11 |
100 | 0 | 5 | 16 |
100 | 0 | 7 | 22 |
100 | 1 | 1 | 3 |
-100 | -100 | 3 | 9 |
-100 | -100 | 2 | 6 |
100 | 100 | 3 | 10 |
100 | 0.375 | 7 | 21 |
-100 | 0 | 6 | 19 |
7 | 23 | ||
5 | 17 | ||
4 | 14 | ||
5 | 15 | ||
1 | 4 | ||
0 | 2 | ||
6 | 18 | ||
4 | 12 | ||
0 | 1 | ||
3 | 11 | ||
1 | 5 | ||
5 | 16 |