src/old_threedigitaltwin.js
/**
     * Loads the textures of all existing conveyors, saving them in a map (cubeMaterial),
     * key: Name | value: Array of materials
     * 
     * @param {Name of the conveyor texture} name 
     * @param {Array with textures of a specific conveyor} facesOfTexture 
     */
Loads the textures of all existing conveyors, saving them in a map (cubeMaterial),
key: Name | value: Array of materials

@param {Name of the conveyor texture} name
@param {Array with textures of a specific conveyor} facesOfTexture
Loads the textures of all existing conveyors saving them in a map ( cubeMaterial ) key : Name | value : Array of materials @param { Name of the conveyor texture } name @param { Array with textures of a specific conveyor } facesOfTexture
_initCubeMaterial(name, facesOfTexture) {
        for (let face in facesOfTexture) {
            this._loadCubeTexture(facesOfTexture[face]).then(
                texture => {
                    var material = new THREE.MeshLambertMaterial({ map: texture });
                    if (this.cubeMaterial.get(name)) {
                        var materials = this.cubeMaterial.get(name);
                        materials[face] = material;
                    } else {
                        var textureFaces = {};
                        textureFaces[face] = material;
                        this.cubeMaterial.set(name, textureFaces);
                    }
                },
                error => {
                    console.log(error);
                }
            );
        }
    }
_initCubeMaterial ( name , facesOfTexture ) { for ( let face in facesOfTexture ) { this . _loadCubeTexture ( facesOfTexture [ face ] ) . then ( texture => { var material = new THREE . MeshLambertMaterial ( { map : texture } ) ; if ( this . cubeMaterial . get ( name ) ) { var materials = this . cubeMaterial . get ( name ) ; materials [ face ] = material ; } else { var textureFaces = { } ; textureFaces [ face ] = material ; this . cubeMaterial . set ( name , textureFaces ) ; } } , error => { console . log ( error ) ; } ) ; } }
Loads the textures of all existing conveyors, saving them in a map (cubeMaterial),
 key: Name | value: Array of materials
Loads the textures of all existing conveyors saving them in a map ( cubeMaterial ) key : Name | value : Array of materials