#
luxiaotao1123
2021-12-22 cf10faae94449dc99d0261f36d830134481f27ae
#
2个文件已添加
2个文件已修改
79651 ■■■■■ 已修改文件
static/js/app.js 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/data/BuildingData.js 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/model/obj/13213.mtl 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/model/obj/13213.obj 79587 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/app.js
@@ -339,6 +339,33 @@
            }
        }
        this.initTransporter = function (object) {
            // const manager = new THREE.LoadingManager();
            // new MTLLoader(manager)
            //     .setPath( '../static/model/obj/' )
            //     .load( '13213.mtl', function ( materials ) {
            //         materials.preload();
            //         new OBJLoader( manager )
            //             .setMaterials( materials )
            //             .setPath( '../static/model/obj/' )
            //             .load( '13213.obj', function ( obj ) {
            //                 obj.traverse (function (child) {
            //                     if (child instanceof THREE.Mesh) {
            //                         child.material = new THREE.MeshLambertMaterial({
            //                             color: 0xCD6839
            //                         });
            //                     }
            //                 });
            //
            //                 obj.scale.set(0.03, 0.03, 0.03);
            //                 obj.rotateY(- Math.PI / 2);
            //                 // obj.name = option.crnNo + "-body";
            //                 obj.position.x = 0;
            //                 obj.position.y = 0;
            //                 obj.position.z = 0;
            //                 object.addObject( obj );
            //             }, null, null );
            //     });
        }
        this.initStoreObjects = function (object) {
            if (this.firstTime === 1) {
static/js/data/BuildingData.js
@@ -3,17 +3,34 @@
        {
            objectName: 'floor',
            objectType: 'cube',
            length: 1400,
            length: 2750,
            width: 1200,
            height: 1,
            position: {
                x: 700,
                y: 600,
                z: 0
                x: 1375,
                y: 1,
                z: 600
            },
            style:{
                color: 0x5F7480,
            }
        },
        {
            objectName: 'floor',
            objectType: 'cube',
            length: 2750,
            width: 1200,
            height: 1,
            position: {
                x: 1375,
                y: 310,
                z: 600
            },
            style:{
                color: 0x5F7480,
                transparent:1,
                opacity:0.8
            }
        }
    ]
}
static/model/obj/13213.mtl
New file
@@ -0,0 +1,12 @@
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
# 创建的文件:22.12.2021 13:18:40
newmtl wire_028089177
    Ns 32
    d 1
    Tr 0
    Tf 1 1 1
    illum 2
    Ka 0.1098 0.3490 0.6941
    Kd 0.1098 0.3490 0.6941
    Ks 0.3500 0.3500 0.3500
static/model/obj/13213.obj
New file
Diff too large