pub unsafe extern "C" fn PxTriangleMesh_getVerticesForModification_mut(
    self_: *mut PxTriangleMesh
) -> *mut PxVec3
Expand description

Returns all mesh vertices for modification.

This function will return the vertices of the mesh so that their positions can be changed in place. After modifying the vertices you must call refitBVH for the refitting to actually take place. This function maintains the old mesh topology (triangle indices).

inplace vertex coordinates for each existing mesh vertex.

It is recommended to use this feature for scene queries only.

Size of array returned is equal to the number returned by getNbVertices().

This function operates on cooked vertex indices.

This means the index mapping and vertex count can be different from what was provided as an input to the cooking routine.

To achieve unchanged 1-to-1 index mapping with orignal mesh data (before cooking) please use the following cooking flags:

eWELD_VERTICES = 0, eDISABLE_CLEAN_MESH = 1.

It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled.