Add fields in mjModel for supporting mesh multicontact in nativeccd.
PiperOrigin-RevId: 728659204 Change-Id: I7f8a11b082640284ea009d8693f228078680b953
This commit is contained in:
committed by
Copybara-Service
parent
b516edae1b
commit
7f3bb062c3
@@ -916,6 +916,9 @@ struct mjModel_ {
|
||||
int nmeshtexcoord; // number of texcoords in all meshes
|
||||
int nmeshface; // number of triangular faces in all meshes
|
||||
int nmeshgraph; // number of ints in mesh auxiliary data
|
||||
int nmeshpoly; // number of polygons in all meshes
|
||||
int nmeshpolyvert; // number of vertices in all polygons
|
||||
int nmeshpolymap; // number of polygons in vertex map
|
||||
int nskin; // number of skins
|
||||
int nskinvert; // number of vertices in all skins
|
||||
int nskintexvert; // number of vertiex with texcoords in all skins
|
||||
@@ -1222,6 +1225,15 @@ struct mjModel_ {
|
||||
mjtNum* mesh_pos; // translation applied to asset vertices (nmesh x 3)
|
||||
mjtNum* mesh_quat; // rotation applied to asset vertices (nmesh x 4)
|
||||
int* mesh_pathadr; // address of asset path for mesh; -1: none (nmesh x 1)
|
||||
int* mesh_polynum; // number of polygons per mesh (nmesh x 1)
|
||||
int* mesh_polyadr; // first polygon address per mesh (nmesh x 1)
|
||||
mjtNum* mesh_polynormal; // all polygon normals (nmeshpoly x 3)
|
||||
int* mesh_polyvertadr; // polygon vertex start address (nmeshpoly x 1)
|
||||
int* mesh_polyvertnum; // number of vertices per polygon (nmeshpoly x 1)
|
||||
int* mesh_polyvert; // all polygon vertices (nmeshpolyvert x 1)
|
||||
int* mesh_polymapadr; // first polygon address per vertex (nmeshvert x 1)
|
||||
int* mesh_polymapnum; // number of polygons per vertex (nmeshvert x 1)
|
||||
int* mesh_polymap; // vertex to polygon map (nmeshpolymap x 1)
|
||||
|
||||
// skins
|
||||
int* skin_matid; // skin material id; -1: none (nskin x 1)
|
||||
|
||||
Reference in New Issue
Block a user