public List<List<Face>> ClusterFaces(BrushMap map) { List<List<Face>> ret = new List<List<Face>>(); List<Face> AllFaces = new List<Face>(); foreach (Entity e in map.Entities) { foreach (Brush b in e.Brushes) AllFaces.AddRange(b.Faces); } IEnumerable<List<Face>> SortedFaces = AllFaces.GroupBy(p => p.TexName).Select(g => g.ToList()); return ret; }
public abstract void WriteMap(BrushMap map);
public abstract void WriteMap(string outputFile, BrushMap map);