Hmm, actually, everything works as expected for me.
Exported DAE file:
mesh.zip (169.1 KB)
SDK2017+
SUMeshHelperRef polyMesh = SU_INVALID;
SUMeshHelperCreate(&polyMesh, faceRef);
size_t result;
size_t nVertices = 0;
size_t nIndices = 0;
if (SUIsValid(polyMesh))
{
SUMeshHelperGetNumVertices(polyMesh, &nVertices);
std::vector<SUPoint3D> points(nVertices);
std::vector<SUPoint3D> uvs(nVertices);
std::vector<SUVector3D> normals(nVertices);
SUMeshHelperGetVertices(polyMesh, nVertices, &points[0], &result);
SUMeshHelperGetNormals(polyMesh, nVertices, &normals[0], &result);
SUMeshHelperGetFrontSTQCoords(polyMesh, nVertices, &uvs[0], &result);
SUMeshHelperGetNumTriangles(polyMesh, &nIndices);
nIndices = nIndices * 3;
std::vector<size_t> indices(nIndices);
SUMeshHelperGetVertexIndices(polyMesh, nIndices, &indices[0], &result);
// Release polyMesh
SUMeshHelperRelease(&polyMesh);
(...)
Dumped data:
[Geometry: faces(16) points(32) uvSets(1)]
Tri #1:
3: V( 0.013, 0.245, 0.054) N( -0.865, 0.000, -0.501) UV( 0.746, 0.984)
0: V( 0.013, 0.292, 0.054) N( -0.866, 0.000, -0.500) UV( 0.746, 0.010)
1: V( 0.024, 0.244, 0.039) N( -0.705, 0.000, -0.709) UV( 0.878, 0.985)
Tri #2:
2: V( 0.024, 0.292, 0.039) N( -0.707, 0.007, -0.707) UV( 0.878, 0.010)
1: V( 0.024, 0.244, 0.039) N( -0.705, 0.000, -0.709) UV( 0.878, 0.985)
0: V( 0.013, 0.292, 0.054) N( -0.866, 0.000, -0.500) UV( 0.746, 0.010)
Tri #3:
7: V( 0.024, 0.292, 0.039) N( -0.707, 0.007, -0.707) UV( 0.878, 0.010)
4: V( 0.038, 0.292, 0.029) N( -0.303, 0.859, -0.412) UV( 0.981, 0.015)
5: V( 0.024, 0.244, 0.039) N( -0.705, 0.000, -0.709) UV( 0.878, 0.985)
Tri #4:
6: V( 0.038, 0.243, 0.029) N( -0.609, 0.000, -0.793) UV( 0.980, 0.986)
5: V( 0.024, 0.244, 0.039) N( -0.705, 0.000, -0.709) UV( 0.878, 0.985)
4: V( 0.038, 0.292, 0.029) N( -0.303, 0.859, -0.412) UV( 0.981, 0.015)
Tri #5:
11: V( 0.006, 0.244, 0.105) N( -0.966, 0.000, 0.260) UV( 0.286, 0.989)
8: V( 0.006, 0.292, 0.105) N( -0.966, 0.000, 0.259) UV( 0.286, 0.010)
9: V( 0.004, 0.245, 0.088) N( -1.000, 0.000, 0.001) UV( 0.438, 0.989)
Tri #6:
10: V( 0.004, 0.292, 0.088) N( -1.000, 0.000, 0.000) UV( 0.438, 0.010)
9: V( 0.004, 0.245, 0.088) N( -1.000, 0.000, 0.001) UV( 0.438, 0.989)
8: V( 0.006, 0.292, 0.105) N( -0.966, 0.000, 0.259) UV( 0.286, 0.010)
Tri #7:
15: V( 0.024, 0.292, 0.136) N( -0.707, 0.000, 0.707) UV( 0.046, 0.010)
12: V( 0.024, 0.244, 0.136) N( -0.705, 0.000, 0.709) UV( 0.047, 0.986)
13: V( 0.030, 0.292, 0.141) N( -0.609, 0.000, 0.793) UV( 0.016, 0.010)
Tri #8:
14: V( 0.030, 0.243, 0.141) N( -0.609, 0.000, 0.793) UV( 0.017, 0.987)
13: V( 0.030, 0.292, 0.141) N( -0.609, 0.000, 0.793) UV( 0.016, 0.010)
12: V( 0.024, 0.244, 0.136) N( -0.705, 0.000, 0.709) UV( 0.047, 0.986)
Tri #9:
19: V( 0.004, 0.245, 0.088) N( -1.000, 0.000, 0.001) UV( 0.438, 0.989)
16: V( 0.004, 0.292, 0.088) N( -1.000, 0.000, 0.000) UV( 0.438, 0.010)
17: V( 0.006, 0.245, 0.070) N( -0.966, 0.000, -0.259) UV( 0.596, 0.988)
Tri #10:
18: V( 0.006, 0.292, 0.070) N( -0.966, 0.000, -0.259) UV( 0.596, 0.010)
17: V( 0.006, 0.245, 0.070) N( -0.966, 0.000, -0.259) UV( 0.596, 0.988)
16: V( 0.004, 0.292, 0.088) N( -1.000, 0.000, 0.000) UV( 0.438, 0.010)
Tri #11:
23: V( 0.013, 0.244, 0.122) N( -0.865, 0.000, 0.502) UV( 0.152, 0.987)
20: V( 0.013, 0.292, 0.122) N( -0.866, 0.000, 0.500) UV( 0.152, 0.010)
21: V( 0.006, 0.244, 0.105) N( -0.966, 0.000, 0.260) UV( 0.286, 0.989)
Tri #12:
22: V( 0.006, 0.292, 0.105) N( -0.966, 0.000, 0.259) UV( 0.286, 0.010)
21: V( 0.006, 0.244, 0.105) N( -0.966, 0.000, 0.260) UV( 0.286, 0.989)
20: V( 0.013, 0.292, 0.122) N( -0.866, 0.000, 0.500) UV( 0.152, 0.010)
Tri #13:
27: V( 0.006, 0.245, 0.070) N( -0.966, 0.000, -0.259) UV( 0.596, 0.988)
24: V( 0.006, 0.292, 0.070) N( -0.966, 0.000, -0.259) UV( 0.596, 0.010)
25: V( 0.013, 0.245, 0.054) N( -0.865, 0.000, -0.501) UV( 0.746, 0.984)
Tri #14:
26: V( 0.013, 0.292, 0.054) N( -0.866, 0.000, -0.500) UV( 0.746, 0.010)
25: V( 0.013, 0.245, 0.054) N( -0.865, 0.000, -0.501) UV( 0.746, 0.984)
24: V( 0.006, 0.292, 0.070) N( -0.966, 0.000, -0.259) UV( 0.596, 0.010)
Tri #15:
31: V( 0.024, 0.244, 0.136) N( -0.705, 0.000, 0.709) UV( 0.047, 0.986)
28: V( 0.024, 0.292, 0.136) N( -0.707, 0.000, 0.707) UV( 0.046, 0.010)
29: V( 0.013, 0.244, 0.122) N( -0.865, 0.000, 0.502) UV( 0.152, 0.987)
Tri #16:
30: V( 0.013, 0.292, 0.122) N( -0.866, 0.000, 0.500) UV( 0.152, 0.010)
29: V( 0.013, 0.244, 0.122) N( -0.865, 0.000, 0.502) UV( 0.152, 0.987)
28: V( 0.024, 0.292, 0.136) N( -0.707, 0.000, 0.707) UV( 0.046, 0.010)