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

            mesh.uv = ComputeFlatUVArray(mesh.vertices);
            ApplyHeightMap(mesh.vertices, heightMap);
            return(mesh);
        }
예제 #2
0
        void TriangulateMap()
        {
            MapTriangulator mapTriangulator = new MapTriangulator(map);

            mesh = mapTriangulator.Triangulate();
        }
예제 #3
0
        public static MeshData Triangulate(WallGrid grid)
        {
            var triangulator = new MapTriangulator(grid);

            return(triangulator.Triangulate());
        }