static MeshData BuildFlatMesh(WallGrid grid, IHeightMap heightMap)
        {
            MeshData mesh = MapTriangulator.Triangulate(grid);

            mesh.uv = ComputeFlatUVArray(mesh.vertices);
            ApplyHeightMap(mesh.vertices, heightMap);
            return(mesh);
        }
Ejemplo n.º 2
0
        void TriangulateMap()
        {
            MapTriangulator mapTriangulator = new MapTriangulator(map);

            mesh = mapTriangulator.Triangulate();
        }
Ejemplo n.º 3
0
        public static MeshData Triangulate(WallGrid grid)
        {
            var triangulator = new MapTriangulator(grid);

            return(triangulator.Triangulate());
        }