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
pathstringThe path.
dispatcherDispatcherThe dispatcher used to create the model.
freezeboolFreeze the model if set to
true.
Returns
- Model3DGroup
A model.
Exceptions
- InvalidOperationException
File format not supported.