 |
ObjImporter Methods |
The ObjImporter type exposes the following members.
Methods| | Name | Description |
|---|
 | Import(String) |
Imports the 3D models from objFileName file and returns the 3D model(s) as a GroupNode that contains MeshModelNodes and other GroupNodes.
The method will not return null but an empty GroupNode in case no model is read.
Textures directory is the same as obj file directory.
|
 | Import(Stream, FuncString, Stream) |
Imports the 3D models from stream and returns the 3D model(s) as a GroupNode that contains MeshModelNodes and other GroupNodes.
When the obj file have any additional resources (materials and textures), the resolveResourceFunc must be set to a method that converts resource names into Streams.
The method will not return null but an empty GroupNode in case no model is read.
|
 | Import(Stream, FuncString, Stream, Material) |
Imports the 3D models from stream and returns the 3D model(s) as a GroupNode that contains MeshModelNodes and other GroupNodes.
When the obj file have any additional resources (materials and textures), the resolveResourceFunc must be set a method that converts the resource name into Stream.
The method will not return null but an empty GroupNode in case no model is read.
|
 | Import(String, String, StandardMaterial) |
Imports the 3D models from objFileName file and returns the 3D model(s) as a GroupNode that contains MeshModelNodes and other GroupNodes.
The method will not return null but an empty GroupNode in case no model is read.
|
 | ImportAsync |
Imports the 3D models from objFileName in the background thread.
When generateGpuBuffers parameter is true (by default), then the vertex and index buffers will be also generated on the background thread.
The file returns the 3D model(s) as a GroupNode that contains MeshModelNodes and other GroupNodes.
The method will not return null but an empty GroupNode in case no model is read.
|
 | ReadObjFileData(Stream, Boolean) |
Reads the obj file from specified stream and returns the ObjFileData object.
|
 | ReadObjFileData(String, Boolean) |
Reads the objFileName file and returns the ObjFileData object.
When generateMeshes is true (false by default), then also SharpEngine Meshes are generated.
|
Top
See Also