Class StandardMeshReader
Inheritance
StandardMeshReader
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
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
Methods
Add a handler for a given formta
Declaration
public void AddFormatHandler(MeshFormatReader reader)
Parameters
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Check if extension type is supported
Declaration
public bool SupportsFormat(string sExtension)
Parameters
Type |
Name |
Description |
String |
sExtension |
|
Returns
Events
warningEvent
Declaration
public event ParsingMessagesHandler warningEvent
Event Type