getMeshData does not return indices #3691
Replies: 9 comments 4 replies
-
@TontonTremblay from my experience, it seems like vertices are always returned in a consistent order for the second item. Therefore you can just index it by the ordering in that second item. |
Beta Was this translation helpful? Give feedback.
-
I still don't understand the data structure this is using... My mesh has 814 vertices, but how do I get the triplets? |
Beta Was this translation helpful? Give feedback.
-
@seann999 The API was recently updated. What code are you using? |
Beta Was this translation helpful? Give feedback.
-
(Oops, deleted comment on accident) pybullet==3.0.8
(My goal is to convert this to an Open3D TriangleMesh) |
Beta Was this translation helpful? Give feedback.
-
@DanielTakeshi @TontonTremblay @seann999 I'm having the similar issue. Is there any solution for this? |
Beta Was this translation helpful? Give feedback.
-
@Guptajakala what exactly are you trying to do? Can you paste a simple 10-line code snippet, then show why the result is not what you expected? Also please include the PyBullet version. |
Beta Was this translation helpful? Give feedback.
-
@DanielTakeshi My pybullet version is 3.0.8
|
Beta Was this translation helpful? Give feedback.
-
The indices are not exposed at the moment. Note that the rendering indices maybe different from physics indices (many collision shapes don't keep indices at all) |
Beta Was this translation helpful? Give feedback.
-
@erwincoumans |
Beta Was this translation helpful? Give feedback.
-
I am trying to render some basic shapes created in pybullet with an other renderer. The problem I came to is that the function
getMeshData
does not return the indices. It firsts return an integer representing how many vertices there are, then there is a list of vertices, but no indices. Anyone has an idea how to get around?Here is a snippet of code:
Beta Was this translation helpful? Give feedback.
All reactions