protected void Reset() { // Clear the arrays vertexPositions.Clear(); vertexNormals.Clear(); vertexTexCoords.Clear(); meshGroups.Clear(); currentGroupFaces.Clear(); // Free the pooled lists/memory vertexPositions.Capacity = 0; vertexNormals.Capacity = 0; vertexTexCoords.Capacity = 0; meshGroups.Capacity = 0; currentGroupFaces.Capacity = 0; // Clear the mesh group data currentGroupName = null; currentMaterial = null; currentSmoothingGroup = -1; // Clear the global data materialLibName = null; }
public void Reset() { materials.Clear(); materials.Capacity = 0; curMaterial = null; }