static MeshData BuildFlatMesh(WallGrid grid, IHeightMap heightMap) { MeshData mesh = MapTriangulator.Triangulate(grid); mesh.uv = ComputeFlatUVArray(mesh.vertices); ApplyHeightMap(mesh.vertices, heightMap); return(mesh); }
void TriangulateMap() { MapTriangulator mapTriangulator = new MapTriangulator(map); mesh = mapTriangulator.Triangulate(); }
public static MeshData Triangulate(WallGrid grid) { var triangulator = new MapTriangulator(grid); return(triangulator.Triangulate()); }