コード例 #1
0
        /// <summary>
        /// Read the mesh from the provided mesh file
        /// </summary>
        public static MeshFile ReadMesh(string filename)
        {
            if (!File.Exists(filename))
            {
                throw new FileNotFoundException("File not found", filename);
            }
            var file = new MeshFile();

            file.Read(filename);
            return(file);
        }