Exemplo n.º 1
0
        private SectionMeshData[] CreateMeshData()
        {
            SectionMeshData[] sectionMeshes = new SectionMeshData[VerticalSectionCount];

            for (var y = 0; y < VerticalSectionCount; y++)
            {
                sectionMeshes[y] = ((ClientSection)sections[y]).CreateMeshData(X, y, Z);
            }

            meshDataIndex = 0;

            return(sectionMeshes);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Create a mesh for this section and activate it.
        /// </summary>
        /// <param name="sectionX">The x position, in section coordinates.</param>
        /// <param name="sectionY">The y position, in section coordinates.</param>
        /// <param name="sectionZ">The z position, in section coordinates.</param>
        public void CreateAndSetMesh(int sectionX, int sectionY, int sectionZ)
        {
            SectionMeshData meshData = CreateMeshData(sectionX, sectionY, sectionZ);

            SetMeshData(meshData);
        }