Capítulo 193 de 859
A loader for the NRRD format.
const loader = new NRRDLoader();
const volume = await loader.loadAsync( 'models/nrrd/I.nrrd' );
Constructor
| Signature |
|---|
new NRRDLoader( manager : LoadingManager ) |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded NRRD asset to the onLoad() callback. |
.parse( data : ArrayBuffer ) : Volume | Parses the given NRRD data and returns the resulting volume data. |
.setSegmentation( segmentation : boolean ) | Toggles the segmentation mode. |