Capítulo 193 de 859

Chapter 193: NRRDLoader

Core Idea

A loader for the NRRD format.

Code Examples

const loader = new NRRDLoader();
const volume = await loader.loadAsync( 'models/nrrd/I.nrrd' );
  • What it demonstrates: Typical usage of NRRDLoader.

Reference Tables

Constructor

Signature
new NRRDLoader( manager : LoadingManager )

Methods

MethodDescription
.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 ) : VolumeParses the given NRRD data and returns the resulting volume data.
.setSegmentation( segmentation : boolean )Toggles the segmentation mode.

Key Takeaways

  1. NRRDLoader extends: Loader
  2. Key methods: load, parse, setSegmentation.

Connects To