Click or drag to resize
Ab4d.SharpEngine logo

ObjImporter Methods

The ObjImporter type exposes the following members.

Methods
 NameDescription
Public methodImport(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.
Public methodImport(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.
Public methodImport(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.
Public methodImport(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.
Public methodReadObjFileData(Stream) Reads the obj file from specified stream and returns the ObjFileData object.
Public methodReadObjFileData(String) Reads the objFileName file and returns the ObjFileData object.
Public methodReadSceneNodes(String)Obsolete.
Public methodReadSceneNodes(Stream, FuncString, Stream)Obsolete.
Public methodReadSceneNodes(Stream, FuncString, Stream, Material)Obsolete.
Public methodReadSceneNodes(String, String, StandardMaterial)Obsolete.
Top
See Also