|
@@ -442,9 +442,13 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
var points = new Points( geometry, material );
|
|
var points = new Points( geometry, material );
|
|
points.userData[ 'attributes' ] = attributes;
|
|
points.userData[ 'attributes' ] = attributes;
|
|
points.userData[ 'objectType' ] = obj.objectType;
|
|
points.userData[ 'objectType' ] = obj.objectType;
|
|
- if( attributes.name ) {
|
|
|
|
|
|
+
|
|
|
|
+ if ( attributes.name ) {
|
|
|
|
+
|
|
points.name = attributes.name;
|
|
points.name = attributes.name;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+
|
|
return points;
|
|
return points;
|
|
|
|
|
|
case 'Mesh':
|
|
case 'Mesh':
|
|
@@ -471,8 +475,11 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
mesh.receiveShadow = attributes.receivesShadows;
|
|
mesh.receiveShadow = attributes.receivesShadows;
|
|
mesh.userData[ 'attributes' ] = attributes;
|
|
mesh.userData[ 'attributes' ] = attributes;
|
|
mesh.userData[ 'objectType' ] = obj.objectType;
|
|
mesh.userData[ 'objectType' ] = obj.objectType;
|
|
- if( attributes.name ) {
|
|
|
|
|
|
+
|
|
|
|
+ if ( attributes.name ) {
|
|
|
|
+
|
|
mesh.name = attributes.name;
|
|
mesh.name = attributes.name;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
return mesh;
|
|
return mesh;
|
|
@@ -494,8 +501,11 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
|
|
|
brepObject.userData[ 'attributes' ] = attributes;
|
|
brepObject.userData[ 'attributes' ] = attributes;
|
|
brepObject.userData[ 'objectType' ] = obj.objectType;
|
|
brepObject.userData[ 'objectType' ] = obj.objectType;
|
|
- if( attributes.name ) {
|
|
|
|
|
|
+
|
|
|
|
+ if ( attributes.name ) {
|
|
|
|
+
|
|
brepObject.name = attributes.name;
|
|
brepObject.name = attributes.name;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
return brepObject;
|
|
return brepObject;
|
|
@@ -513,8 +523,11 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
var lines = new Line( geometry, material );
|
|
var lines = new Line( geometry, material );
|
|
lines.userData[ 'attributes' ] = attributes;
|
|
lines.userData[ 'attributes' ] = attributes;
|
|
lines.userData[ 'objectType' ] = obj.objectType;
|
|
lines.userData[ 'objectType' ] = obj.objectType;
|
|
- if( attributes.name ) {
|
|
|
|
|
|
+
|
|
|
|
+ if ( attributes.name ) {
|
|
|
|
+
|
|
lines.name = attributes.name;
|
|
lines.name = attributes.name;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
return lines;
|
|
return lines;
|
|
@@ -558,8 +571,11 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
|
|
|
sprite.userData[ 'attributes' ] = attributes;
|
|
sprite.userData[ 'attributes' ] = attributes;
|
|
sprite.userData[ 'objectType' ] = obj.objectType;
|
|
sprite.userData[ 'objectType' ] = obj.objectType;
|
|
- if( attributes.name ) {
|
|
|
|
|
|
+
|
|
|
|
+ if ( attributes.name ) {
|
|
|
|
+
|
|
sprite.name = attributes.name;
|
|
sprite.name = attributes.name;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
return sprite;
|
|
return sprite;
|