Note: This documentation is preliminary and is subject to change.
Generates an output mesh with reordered faces and vertices to optimize performance.
Definition
Visual Basic .NET
Public Function Optimize( _ ByVal flags As MeshFlags, _ ByRef adjacencyOut As Integer, _ ByRef faceRemap As Integer, _ ByRef vertexRemap As GraphicsStream _ ) As Mesh
System.Int32[]. Array for the face adjacency array of the optimized mesh. The face adjacency is stored as an array of arrays. The innermost array is three indices of adjacent triangles, and the outermost array is one set of face adjacencies per triangle in the mesh. The size of this array is the maximum number of faces multiplied by 3.
faceRemap
System.Int32[]. Array that contains the new index for each face.