Obj |
public class ObjFileToWpfModel3DConverter
The ObjFileToWpfModel3DConverter type exposes the following members.
Name | Description | |
---|---|---|
ObjFileToWpfModel3DConverter | Initializes a new instance of the ObjMeshToWpfModel3DConverter class. |
Name | Description | |
---|---|---|
BitmapCacheOption | Gets or sets a BitmapCacheOption that is used when creating bitmaps from files. Default value is OnLoad that caches the image in memory at load time (this does not lock the image file name). | |
DefaultBackMaterial | Gets or sets a material that is used for BackMaterial when no other back material is specified in obj file. When set to null, no BackMaterial will be used. | |
DefaultMaterial | Gets or sets a material that is used when no other material is specified in obj file. By default DefaultMaterial is set to Silver DiffuseMaterial. | |
InvertYTextureCoordinate | Gets or sets a boolean that specifies if Y texture coordinate is inverted. | |
NamedObjects | Gets a Dictionary with object name as key and Model3D as value that defines names for the objects. | |
ParentModelVisual3D | ParentModelVisual3D need to be set in case the obj files will support reading 3D lines. The property need to be set the ModelVisual3D that will be the parent for the read 3D models. | |
ResolveResourceFunc | Gets or sets a Func that returns stream from the specified resource name. This can be used to read resources from stream. The returned stream will be closed by the ReaderObj. | |
ReuseMaterials | Gets or sets a boolean that specified if one material instance defined in obj file can be reused for all Model3D objects that use that material. If false than a new material instance will be created for each usage. Default value is true. | |
TexturesDirectory | Gets or sets a folder name that when set is used to read texture file names from. |
Name | Description | |
---|---|---|
Convert(ObjFileData) | Converts the ObjFileData into Model3D. | |
Convert(ObjMaterial) | Converts ObjMaterial into a Material that can be used in WPF. | |
Convert(ObjMesh, ObjFileData) | Converts one ObjMeshData from ObjFileData into Model3D |