Exemplo n.º 1
0
        /// <summary>
        /// Builds a chunky mesh
        /// </summary>
        /// <param name="input">Geometry input</param>
        /// <returns>Returns the new chunky mesh</returns>
        public static ChunkyTriMesh Build(InputGeometry input)
        {
            var triangles = input.GetTriangles();

            if (triangles.Any() && CreateChunkyTriMesh(triangles, 256, out ChunkyTriMesh chunkyMesh))
            {
                return(chunkyMesh);
            }

            return(null);
        }
 public TileCacheMeshProcess(InputGeometry geometry)
 {
     this.m_geom = geometry;
 }