Read normals and textures from OBJ, do not duplicate vertices.

PiperOrigin-RevId: 510461549
Change-Id: I19245d691e722a8371e61153383f275f599353d6
This commit is contained in:
Alessio Quaglino
2023-02-17 10:14:25 -08:00
committed by Copybara-Service
parent 35967a30d9
commit 9756ed0d80
16 changed files with 279 additions and 168 deletions
+8 -2
View File
@@ -1874,7 +1874,8 @@ public unsafe struct mjModel_ {
public int nlight;
public int nmesh;
public int nmeshvert;
public int nmeshtexvert;
public int nmeshnormal;
public int nmeshtexcoord;
public int nmeshface;
public int nmeshgraph;
public int nskin;
@@ -2042,14 +2043,19 @@ public unsafe struct mjModel_ {
public float* light_specular;
public int* mesh_vertadr;
public int* mesh_vertnum;
public int* mesh_texcoordadr;
public int* mesh_faceadr;
public int* mesh_facenum;
public int* mesh_normaladr;
public int* mesh_normalnum;
public int* mesh_texcoordadr;
public int* mesh_texcoordnum;
public int* mesh_graphadr;
public float* mesh_vert;
public float* mesh_normal;
public float* mesh_texcoord;
public int* mesh_face;
public int* mesh_facenormal;
public int* mesh_facetexcoord;
public int* mesh_graph;
public int* skin_matid;
public int* skin_group;