Increase mesh allocation for vertices/indices in PyBullet.createCollisionShape
See createMesh.py for an example. The data has to fit in shared memory, hence the limit on Mac is lower than Windows and Linux: #ifdef __APPLE__ #define B3_MAX_NUM_VERTICES 8192 #define B3_MAX_NUM_INDICES 32768 #else #define B3_MAX_NUM_VERTICES 131072 #define B3_MAX_NUM_INDICES 524288 #endif
This commit is contained in:
@@ -928,9 +928,7 @@ struct b3CreateUserShapeData
|
||||
int m_collisionFlags;
|
||||
int m_visualFlags;
|
||||
int m_numVertices;
|
||||
double m_vertices[B3_MAX_NUM_VERTICES*3];
|
||||
int m_numIndices;
|
||||
int m_indices[B3_MAX_NUM_INDICES];
|
||||
double m_rgbaColor[4];
|
||||
double m_specularColor[3];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user