Function TrnNWN2WalkmeshPayload.removeTriangles

Removes triangles from the mesh, and removes unused vertices and edges accordingly.

void removeTriangles (
  bool delegate(in TrnNWN2WalkmeshPayload.Triangle) removeFunc
);

Also updates vertex / edge / triangle indices to match new indices.

Does not updates path tables. You need to run bake() to re-generate path tables.

Parameters

NameDescription
removeFunc Delegate to check is triangle must be removed.