BananaMpq.Geometry.Builders.SquareMeshBuilder.SquareMeshBuilder C# (CSharp) Метод

SquareMeshBuilder() публичный Метод

public SquareMeshBuilder ( float heightMap, System.Vector3 offset, float tileSize, System.Matrix rootTransform = null ) : System
heightMap float
offset System.Vector3
tileSize float
rootTransform System.Matrix
Результат System
        public SquareMeshBuilder(float[,] heightMap, Vector3 offset, float tileSize, Matrix? rootTransform = null)
        {
            _tileSize = tileSize;
            _rootTransform = rootTransform;
            _offset = offset;
            _heightMap = heightMap;
            var rows = heightMap.GetLength(0);
            var cols = heightMap.GetLength(1);
            _jumpIndices = ArrayUtil.MakeTwoDimensionalArray(-1, rows, cols);
            _vertices = new List<Vector3>(rows * cols);
        }