|
AssimpConverter Class |
AssimpConverter class provides method that can convert native Assimp Scene object into Ab4d.SharpEngine objects.
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.AssimpAssembly: Ab4d.SharpEngine.Assimp (in Ab4d.SharpEngine.Assimp.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public class AssimpConverter
The AssimpConverter type exposes the following members.
Constructors Properties | Name | Description |
---|
| AllMaterials |
Gets an array of all created StandardMaterials.
|
| AllMeshes |
Gets an array of all created meshes
|
| CalculateNormals |
Gets or sets a Boolean that specifies if normals are calculated when they are not defined in the file.
Default value is true.
|
| GenerateUniqueModelNames |
When true (by default) then unique object names are generated, e.g. when the objects from Assimp scene have the same name, the "__2", "__3", "__4", etc. suffixes added to the name (the first object does not have changed name).
|
| LoggerCallback |
Callback action that can be used to log Assimp and AssimpWpfConverter log messages
|
| NamedObjects |
Gets a dictionary that can be used to get a 3D object by its name (key = name, value = object)
|
| UseSimpleTriangulation |
Gets or sets a Boolean that specifies if simple triangle fan triangulation is used instead of standard triangulation.
This property is used only when the 3D model is not triangulated by assimp importer (when Triangulate PostProcessSteps is not used).
Default value is false.
|
TopMethods | Name | Description |
---|
| CheckTextureFileName |
CheckTextureFileName checks the texture file name and if file does not exist or is not in supported file format tries to find another file that can be used instead.
Returns the file name that can be used to create a texture. If no file can be found, null is returned.
The method can be overridden.
|
| ConvertAssimpScene(AssimpScene, String, FuncString, Stream) |
ConvertAssimpScene converts the specified native Assimp Scene object and converts it into Ab4d.SharpEngine objects returning the root GroupNode object.
|
| ConvertAssimpScene(AssimpScene, String, String) |
ConvertAssimpScene converts the specified native Assimp Scene object and converts it into Ab4d.SharpEngine objects returning the root GroupNode object.
|
| CreateTexture |
CreateGpuTexture method creates a GpuTexture from texture file name and sets that to the specified material.
|
TopFields See Also