The MESH_VALIDATE function checks for NaN values in vertices, removes unused vertices, and combines close vertices.
The function return value is the number of triangles in the modified polygonal mesh connectivity array.
Input/Output array of polygonal vertices [3, n]. These are potentially modified and returned to the user.
Input/Output polygonal mesh connectivity array. This array is modified and returned to the user. On output, the connectivity array describes a triangular mesh.
If this keyword is set, the routine will attempt to collapse vertices which are at the same location in space into single vertices. If the expression
is true, the points (i) and (i+1) can be collapsed into a single vertex. The result is returned as a modification of the Verts argument.
If this keyword is set, the Verts input array will be packed to exclude any non-referenced vertices. The result is returned in the Verts argument.
If this keyword is set, the function will remove any polygons from CONN which reference vertices containing NaN values.
This keyword is used to specify the tolerance value used with the COMBINE_VERTS keyword. The default value is 0.0.