Reader |
The ReaderObj type exposes the following members.
Name | Description | |
---|---|---|
ReadObjFileData(Stream) | Reads the obj file from specified stream and returns the ObjFileData object. | |
ReadObjFileData(String) | Reads the objFileName file and returns the ObjFileData object. | |
ReadSceneNodes(String) | Reads 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. | |
ReadSceneNodes(Stream, FuncString, Stream) | Reads 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. | |
ReadSceneNodes(Stream, FuncString, Stream, Material) | Reads 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. | |
ReadSceneNodes(String, String, StandardMaterial) | Reads 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. |