Table of Contents

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

Constructors

ObjExporter(string)

Initializes a new instance of the ObjExporter class.

public ObjExporter(string outputFileName)

Parameters

outputFileName string

Name of the output file.

ObjExporter(string, string?)

Initializes a new instance of the ObjExporter class.

public ObjExporter(string outputFileName, string? comment)

Parameters

outputFileName string

Name of the output file.

comment string

The comment.

Properties

ExportNormals

Gets or sets a value indicating whether to export normals.

public bool ExportNormals { get; set; }

Property Value

bool

SwitchYZ

Gets or sets a value indicating whether to switch Y and Z coordinates.

public bool SwitchYZ { get; set; }

Property Value

bool

UseDissolveForTransparency

Gets or sets a value indicating whether to use "d" for transparency (default is "Tr").

public bool UseDissolveForTransparency { get; set; }

Property Value

bool

Methods

Close()

Closes this exporter.

public override void Close()

ExportMesh(MeshGeometry3D?, Matrix4x4?)

The export mesh.

public void ExportMesh(MeshGeometry3D? m, Matrix4x4? t)

Parameters

m MeshGeometry3D

The m.

t Matrix4x4?

The t.

ExportModel(MeshNode, Transform3D)

The export model.

protected override void ExportModel(MeshNode model, Transform3D transform)

Parameters

model MeshNode

The model.

transform Transform3D

The transform.