Search Results for

    Show / Hide Table of Contents

    Class StandardMeshReader

    Inheritance
    Object
    StandardMeshReader
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class StandardMeshReader

    Constructors

    StandardMeshReader(Boolean)

    Construct a MeshReader, optionally with default format handlers Initializes MeshBuilder to a DMesh3Builder

    Declaration
    public StandardMeshReader(bool bIncludeDefaultReaders = true)
    Parameters
    Type Name Description
    Boolean bIncludeDefaultReaders

    Fields

    ReadInvariantCulture

    If the mesh format we are writing is text, then the OS will write in the number style of the current language. So in Germany, numbers are written 1,00 instead of 1.00, for example. If this flag is true, we override this to always write in a consistent way.

    Declaration
    public bool ReadInvariantCulture
    Field Value
    Type Description
    Boolean

    Properties

    MeshBuilder

    The various format handlers will use this IMeshBuilder to construct meshes based on the file data and read options. Default is initialized to DMesh3Builder

    Declaration
    public IMeshBuilder MeshBuilder { get; set; }
    Property Value
    Type Description
    IMeshBuilder

    Methods

    AddFormatHandler(MeshFormatReader)

    Add a handler for a given formta

    Declaration
    public void AddFormatHandler(MeshFormatReader reader)
    Parameters
    Type Name Description
    MeshFormatReader reader

    Read(Stream, String, ReadOptions)

    Read mesh file at path, with given Options. Result is stored in MeshBuilder parameter

    Declaration
    public IOReadResult Read(Stream stream, string sExtension, ReadOptions options)
    Parameters
    Type Name Description
    Stream stream
    String sExtension
    ReadOptions options
    Returns
    Type Description
    IOReadResult

    Read(String, ReadOptions)

    Read mesh file at path, with given Options. Result is stored in MeshBuilder parameter

    Declaration
    public IOReadResult Read(string sFilename, ReadOptions options)
    Parameters
    Type Name Description
    String sFilename
    ReadOptions options
    Returns
    Type Description
    IOReadResult

    ReadFile(Stream, String, ReadOptions, IMeshBuilder)

    Read mesh file using options and builder. You must provide our own Builder here because the reader is not returned

    Declaration
    public static IOReadResult ReadFile(Stream stream, string sExtension, ReadOptions options, IMeshBuilder builder)
    Parameters
    Type Name Description
    Stream stream
    String sExtension
    ReadOptions options
    IMeshBuilder builder
    Returns
    Type Description
    IOReadResult

    ReadFile(String, ReadOptions, IMeshBuilder)

    Read mesh file using options and builder. You must provide our own Builder here because the reader is not returned

    Declaration
    public static IOReadResult ReadFile(string sFilename, ReadOptions options, IMeshBuilder builder)
    Parameters
    Type Name Description
    String sFilename
    ReadOptions options
    IMeshBuilder builder
    Returns
    Type Description
    IOReadResult

    ReadMesh(Stream, String)

    This is basically a utility function, returns first mesh in file, with default options.

    Declaration
    public static DMesh3 ReadMesh(Stream stream, string sExtension)
    Parameters
    Type Name Description
    Stream stream
    String sExtension
    Returns
    Type Description
    DMesh3

    ReadMesh(String)

    This is basically a utility function, returns first mesh in file, with default options.

    Declaration
    public static DMesh3 ReadMesh(string sFilename)
    Parameters
    Type Name Description
    String sFilename
    Returns
    Type Description
    DMesh3

    SupportsFormat(String)

    Check if extension type is supported

    Declaration
    public bool SupportsFormat(string sExtension)
    Parameters
    Type Name Description
    String sExtension
    Returns
    Type Description
    Boolean

    Events

    warningEvent

    Declaration
    public event ParsingMessagesHandler warningEvent
    Event Type
    Type Description
    ParsingMessagesHandler
    In This Article
    Back to top ViRGIS VR GIS