Workspace 6.21.5
|
Reads a Waverfront OBJ file (.obj) from a source file into a hierarchy of SceneItems. Each component of the file is read into a MeshModelInterface and attached to a MeshModelLibrary which can be added to a Scene. Both the output SceneItem and the MeshModelLibrary must be added to the SceneBuilder for visualisation.
Inputs: | |||
---|---|---|---|
File name | QString | ||
Outputs: | |||
Mesh model library | CSIRO::Mesh::MeshModelLibrary | Contains all of the MeshModelInterface data read from the file. Each component of the dataset is added to the library as a separate item with its own unique ID. | |
Scene item | CSIRO::Rendering::SceneItem | A hierarchy of Scene items, including MeshModelInstances, Transforms and Shaders. This top-level Scene item can be added to a SceneBuilder (along with the Mesh model library output) for visualisation. |