Class StandardMeshWriter
Writes various mesh file formats. Format is determined from extension. Currently supports:
Each of these is implemented in a separate Writer class, eg OBJWriter, STLWriter, etc
Inheritance
StandardMeshWriter
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
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
Methods
Dispose()
Declaration
Write(String, List<WriteMesh>, WriteOptions)
Declaration
public IOWriteResult Write(string sFilename, List<WriteMesh> vMeshes, WriteOptions options)
Parameters
Returns
WriteFile(String, List<WriteMesh>, WriteOptions)
Declaration
public static IOWriteResult WriteFile(string sFilename, List<WriteMesh> vMeshes, WriteOptions options)
Parameters
Returns
WriteMesh(String, IMesh, WriteOptions)
Declaration
public static IOWriteResult WriteMesh(string sFilename, IMesh mesh, WriteOptions options)
Parameters
Returns
WriteMeshes(String, List<DMesh3>, WriteOptions)
Declaration
public static IOWriteResult WriteMeshes(string sFilename, List<DMesh3> vMeshes, WriteOptions options)
Parameters
Returns
Implements