Class ObjExporter
- Namespace
- HelixToolkit.Wpf.SharpDX
- Assembly
- HelixToolkit.Wpf.SharpDX.dll
Export the 3D visual tree to a Wavefront OBJ file
public class ObjExporter : Exporter, IExporter, IDisposable
- Inheritance
-
ObjExporter
- Implements
- Inherited Members
Remarks
http://en.wikipedia.org/wiki/Obj http://www.martinreddy.net/gfx/3d/OBJ.spec http://www.eg-models.de/formats/Format_Obj.html
Constructors
ObjExporter(string)
Initializes a new instance of the ObjExporter class.
public ObjExporter(string outputFileName)
Parameters
outputFileNamestringName of the output file.
ObjExporter(string, string?)
Initializes a new instance of the ObjExporter class.
public ObjExporter(string outputFileName, string? comment)
Parameters
Properties
ExportNormals
Gets or sets a value indicating whether to export normals.
public bool ExportNormals { get; set; }
Property Value
SwitchYZ
Gets or sets a value indicating whether to switch Y and Z coordinates.
public bool SwitchYZ { get; set; }
Property Value
UseDissolveForTransparency
Gets or sets a value indicating whether to use "d" for transparency (default is "Tr").
public bool UseDissolveForTransparency { get; set; }
Property Value
Methods
Close()
Closes this exporter.
public override void Close()
ExportMesh(MeshGeometry3D?, Matrix4x4?)
The export mesh.
public void ExportMesh(MeshGeometry3D? m, Matrix4x4? t)
Parameters
mMeshGeometry3DThe m.
tMatrix4x4?The t.
ExportModel(MeshNode, Transform3D)
The export model.
protected override void ExportModel(MeshNode model, Transform3D transform)
Parameters
modelMeshNodeThe model.
transformTransform3DThe transform.