Example #1
0
        /// <summary>
        /// Read mesh file using options and builder. You must provide our own Builder
        /// here because the reader is not returned
        /// </summary>
        static public IOReadResult ReadFile(Stream stream, string sExtension, ReadOptions options, IMeshBuilder builder)
        {
            var reader = new StandardMeshReader();

            reader.MeshBuilder = builder;
            return(reader.Read(stream, sExtension, options));
        }
Example #2
0
        /// <summary>
        /// Read mesh file using options and builder. You must provide our own Builder
        /// here because the reader is not returned
        /// </summary>
        static public IOReadResult ReadFile(string sFilename, ReadOptions options, IMeshBuilder builder)
        {
            var reader = new StandardMeshReader();

            reader.MeshBuilder = builder;
            return(reader.Read(sFilename, options));
        }