Hi, I’m working on the deformable object mesh, and I want to extract deformable mesh.
For example, I need to save collision or simulation mesh in the picture as
.STL file format.
I checked this code could returns points and indices info, but the dimensions are not matching.
deform_path = "/World/Cube" prim = get_current_stage().GetPrimAtPath(deform_path) deformable_body = PhysxSchema.PhysxDeformableBodyAPI(prim) collision_mesh = np.array(deformable_body.GetCollisionPointsAttr().Get()) CollisionIndices = deformable_body.GetCollisionIndicesAttr().Get() # (1 X 23252) CollisionPoints = deformable_body.GetCollisionPointsAttr().Get() # (3 X 1928)
I thinks size of the
CollisionIndices must be 1928, but I have no idea why the size is different.
1. Can you explain the relationship between
2. How can I get tet_position and tet_indices of deformable object mesh? I want to select only exterior point cloud using tri_indices which is calculated from tet_indices.
This is what I made using
CollisionPoints, showing thatCollisionPoints` works well.