Search Results for

    Show / Hide Table of Contents

    Class StandardMeshWriter

    Writes various mesh file formats. Format is determined from extension. Currently supports:

    • .obj : Wavefront OBJ Format https://en.wikipedia.org/wiki/Wavefront_.obj_file
    • .stl : ascii and binary STL formats https://en.wikipedia.org/wiki/STL_(file_format)
    • .off : OFF format https://en.wikipedia.org/wiki/OFF_(file_format)
    • .g3mesh : internal binary format for packed DMesh3 objects

    Each of these is implemented in a separate Writer class, eg OBJWriter, STLWriter, etc

    Inheritance
    Object
    StandardMeshWriter
    Implements
    IDisposable
    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 StandardMeshWriter : IDisposable

    Fields

    CloseStreamF

    called on Streams returned by OpenStreamF when we are done with them.

    Declaration
    public Action<Stream> CloseStreamF
    Field Value
    Type Description
    Action<Stream>

    OpenStreamF

    By default we write to files, but if you would like to write to some other Stream type (eg MemoryStream), you can replace this function.
    We also pass this function down into the XYZWriter classes that need to write additional files (eg OBJ mesh)

    Declaration
    public Func<string, Stream> OpenStreamF
    Field Value
    Type Description
    Func<String, Stream>

    WriteInvariantCulture

    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 WriteInvariantCulture
    Field Value
    Type Description
    Boolean

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Write(String, List<WriteMesh>, WriteOptions)

    Declaration
    public IOWriteResult Write(string sFilename, List<WriteMesh> vMeshes, WriteOptions options)
    Parameters
    Type Name Description
    String sFilename
    List<WriteMesh> vMeshes
    WriteOptions options
    Returns
    Type Description
    IOWriteResult

    WriteFile(String, List<WriteMesh>, WriteOptions)

    Declaration
    public static IOWriteResult WriteFile(string sFilename, List<WriteMesh> vMeshes, WriteOptions options)
    Parameters
    Type Name Description
    String sFilename
    List<WriteMesh> vMeshes
    WriteOptions options
    Returns
    Type Description
    IOWriteResult

    WriteMesh(String, IMesh, WriteOptions)

    Declaration
    public static IOWriteResult WriteMesh(string sFilename, IMesh mesh, WriteOptions options)
    Parameters
    Type Name Description
    String sFilename
    IMesh mesh
    WriteOptions options
    Returns
    Type Description
    IOWriteResult

    WriteMeshes(String, List<DMesh3>, WriteOptions)

    Declaration
    public static IOWriteResult WriteMeshes(string sFilename, List<DMesh3> vMeshes, WriteOptions options)
    Parameters
    Type Name Description
    String sFilename
    List<DMesh3> vMeshes
    WriteOptions options
    Returns
    Type Description
    IOWriteResult

    Implements

    System.IDisposable
    In This Article
    Back to top ViRGIS VR GIS