Table of Contents

Class ModelImporter

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Imports a model from a file.

public sealed class ModelImporter
Inheritance
ModelImporter
Inherited Members

Constructors

ModelImporter()

Initializes a new instance of the ModelImporter class.

public ModelImporter()

Properties

DefaultMaterial

Gets or sets the default material.

public Material DefaultMaterial { get; set; }

Property Value

Material

The default material.

Methods

Load(string?, Dispatcher?, bool)

Loads a model from the specified path.

public Model3DGroup? Load(string? path, Dispatcher? dispatcher = null, bool freeze = false)

Parameters

path string

The path.

dispatcher Dispatcher

The dispatcher used to create the model.

freeze bool

Freeze the model if set to true.

Returns

Model3DGroup

A model.

Exceptions

InvalidOperationException

File format not supported.