OBJLoader
OBJLoader ⟵ Loader
Class for loading geometry from Wavefront .obj files.
this class extends the base loader to handle obj geometry loading. it
reads embedded files and produces a Group
with Mesh children split by material. key
features:
- loads geometry data from obj files
- creates Mesh objects with BufferGeometry per material group
- integrates with LoadingManager for progress
- supports callback-based loading patterns usage:
- load geometry for mesh creation
- handle loading errors gracefully
- support both synchronous and asynchronous loading
Methods
OBJLoader()
Default constructor - creates an obj loader with default settings
OBJLoader(LoaderManager* manager)
Constructor with loading manager
| manager | Loading manager to use for this loader |
OBJLoader* clone() const
Creates a copy of this obj loader
void copy(const OBJLoader& other)
Copies properties from another obj loader
| other | Source obj loader |
Group* load(const string& url)
Loads an OBJ file and returns a group of meshes (split by material)
| url | Path to the obj file | "" |
virtual void* parse(const void* data) override
Parses loaded obj data into a Group with Mesh children
| data | Raw data to parse |
Properties
| isOBJLoader | bool | Read |