Capítulo 206 de 859
A loader for the 3D Manufacturing Format (3MF) format.
The following features from the core specification are supported:
3MF Materials and Properties Extension are only partially supported.
const loader = new ThreeMFLoader();
const object = await loader.loadAsync( './models/3mf/truck.3mf' );
object.rotation.set( - Math.PI / 2, 0, 0 ); // z-up conversion
scene.add( object );
Constructor
| Signature |
|---|
new ThreeMFLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
.availableExtensions : Array.<Object> | An array of available extensions. |
Methods
| Method | Description |
|---|---|
.addExtension( extension : Object ) | Adds a 3MF extension. |
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded 3MF asset to the onLoad() callback. |
.parse( data : ArrayBuffer ) : Group | Parses the given 3MF data and returns the resulting group. |