File: BufferGeometryLoader.md | Updated: 11/15/2025
Class for loading geometries. The files are internally loaded via FileLoader.
const loader = new THREE.BufferGeometryLoader();
const geometry = await loader.loadAsync( 'models/json/pressure.json' );
const material = new THREE.MeshBasicMaterial( { color: 0xF5F5F5 } );
const object = new THREE.Mesh( geometry, material );
scene.add( object );
Constructs a new geometry loader.
manager | The loading manager.
---|---
Starts loading from the given URL and pass the loaded geometry to the onLoad() callback.
url | The path/URL of the file to be loaded. This can also be a data URI.
---|---
onLoad | Executed when the loading process has been finished.
onProgress | Executed while the loading is in progress.
onError | Executed when errors occur.
Overrides: Loader#load
Parses the given JSON object and returns a geometry.
json | The serialized geometry.
---|---
Overrides: Loader#parse
Returns: The parsed geometry.