|
@@ -325,7 +325,6 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
|
|
|
if ( attributes.materialIndex >= 0 ) {
|
|
if ( attributes.materialIndex >= 0 ) {
|
|
|
|
|
|
- // var rMaterial = materials.find( m => m.id === attributes.materialUUID );
|
|
|
|
var rMaterial = materials[ attributes.materialIndex ];
|
|
var rMaterial = materials[ attributes.materialIndex ];
|
|
var material = this._createMaterial( rMaterial );
|
|
var material = this._createMaterial( rMaterial );
|
|
material = this._compareMaterials( material );
|
|
material = this._compareMaterials( material );
|
|
@@ -419,7 +418,6 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
}
|
|
}
|
|
|
|
|
|
object.userData[ 'materials' ] = this.materials;
|
|
object.userData[ 'materials' ] = this.materials;
|
|
- // this.materials = [];
|
|
|
|
return object;
|
|
return object;
|
|
|
|
|
|
},
|
|
},
|
|
@@ -469,7 +467,7 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
case 'SubD':
|
|
case 'SubD':
|
|
case 'Brep':
|
|
case 'Brep':
|
|
|
|
|
|
- if ( obj.geometry === null ) return;
|
|
|
|
|
|
+ if ( obj.geometry === null ) return;
|
|
|
|
|
|
var geometry = loader.parse( obj.geometry );
|
|
var geometry = loader.parse( obj.geometry );
|
|
|
|
|
|
@@ -1170,7 +1168,7 @@ Rhino3dmLoader.Rhino3dmWorker = function () {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if ( mesh.faces().count > 0) {
|
|
|
|
|
|
+ if ( mesh.faces().count > 0 ) {
|
|
|
|
|
|
mesh.compact();
|
|
mesh.compact();
|
|
geometry = mesh.toThreejsJSON();
|
|
geometry = mesh.toThreejsJSON();
|