From a99b67e2f58ea97b3b03c16d30a4d56cbb680789 Mon Sep 17 00:00:00 2001 From: cc Date: Fri, 15 Dec 2023 05:20:29 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=98=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/yg.png | Bin 0 -> 4974 bytes public/ygr.png | Bin 0 -> 4802 bytes .../bim/bimHome/components/ThreeView2.vue | 31 ++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 public/yg.png create mode 100644 public/ygr.png diff --git a/public/yg.png b/public/yg.png new file mode 100644 index 0000000000000000000000000000000000000000..5aa4f1dc50633303cc87af7c6661bf86aaea1555 GIT binary patch literal 4974 zcmd6LS5y-~w>5z%0TDv4!GI6~C{<8834~@q={*R76lu~yQ3x$4B}%W-dyy7;5rXty zlp+EOp$G`l5x9KozWopX`d|LL?!%lp>+G}l%goyA%tSucQNKyeK}|+Rc2iSBRqtx= z{m%kjzl!B16`5pYj8dAa2m?RNmSw94XCHm0DK*&^&UmFGhg?6!oi*8Oalc3a&(_p$ zsIC~aNfgL3iQ&==Am8PU$k7v6R`{&@8N$@C;SLbAr&Nb2GyKf#Mq=Sl3hjM-WF(IX zTKwOweG1OfE(oN0bLx?i@L7xIhK6s05>@4S|IDbX)U=(MhSuKv1duC&*Yx=*cu-bw z8L(EX;?90dpn<$O;S>; zzcof~KkC>8unrzk72%?e4-UT7S+`IEQ<2Iq@U(597H+g z#YFG}h*c?Mjwgv3QA=XO&{|oyy?AID^{kZFJz!zmWyZh;g+CZe5)FGCFdR$?B1V#x zdt}rH$XP7S02^P91@cPnMwyHE1A-sZ}E7er#6mO1VJ_w(0&ejlUqKwCZxN< zdx^I<{j2mMNEyD5w4>Rm^!#E!7V~azA1g<9FP%*-c0y~f9x@X5X=clZ1JOinv8AH|u*og& zH~EC9zt5`YMEide;-N=sRxU!~(*w=S_KQJFleYY z2Y~v^AA$FM?J4ojd=4R+pntSLBr1ym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#h>)ut!< z4OH5I#!Qu~blIZ(yG21)N_0#AH~JOFOW->x8aar-idP>!+aW+{*6lABuJ6jh!t&Y#V9Ny}>Ii8+LLhq+$P}871a4=L$qP)4wZf ziTR|__q=TwWwfzndiGt{a`_Qfs8>m=7{@i^+qUc)SUoAH^!B!#P|Le*DDH-nA88s4 rU*(PaZK9VRRXKSh?YNDAy}VT>6CNmImb7{Gk4C16(owBIKEeJM&o3=@ literal 0 HcmV?d00001 diff --git a/public/ygr.png b/public/ygr.png new file mode 100644 index 0000000000000000000000000000000000000000..52310e2cf4134fb7bba3bb1e4fb653a613246197 GIT binary patch literal 4802 zcmd5=c|6qLzh?SiM$ycmL1c_QSwb?241?nOMrzLqkyBw>V^o1rz zw#g7n-3As6`MXRX61M@Ki@aj5*Fy20pTY@W)+by*^PK8BwXLKFoej3~f8Fa#mJ9yg zh)t|-K6Srp?fdtuVG$AbUs>Wpw(J-3^c0(}=cRXUc5?w5&^!tmJz=-E`SWM@#!!hV zUuU`6MJ4=5mYi|dEuJ};LIzHj_?YX|!Y@h7oLoK!AbY)TfJ|b_fatq`7XPuHNotRgeMLBPU7s(dmRqHe|+}$JA(mEFFY@c*l7V* z2yb)ZJE4ymx0mDw4AwSf!4yxdR5wpqprDoHIw#0U-~HlYV*$5ZItl5sV1H`Xv#q*V z*{IG1mY3Pg9yTUQVEFmRE9TKW%1E*-=vAMstD6P2j|8zw@2CTH3HJk=Y9d=yD$&ZUQo&*XW0$l-G8jwH)>?~$M(JtOS&?@oodu1VIkt_cnpTF+~#O>YMJaSudJl6`Zz$CM;tCe z$Ii%&>b}EHa|yIb@N%Mh5oL6pklCp?uUaPrhQBvxe$i!jdfi>c!Ge^d(r*dvTL^40i@E?1Mz;_ISlaK~d89SN!9Dqq#^W(4o|0E6`Fy(gZ!(#hFcLC z?|rRwgcHS6a(Ll3TI$Jdg+@CI7jJI>;?S=@tB?5k%N2r`WvgesefTQEp=3o;8HM}o z6Xxhr^m5nPx-W58Y$7B9Y2Y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{bkS%n1Mh literal 0 HcmV?d00001 diff --git a/src/views/bim/bimHome/components/ThreeView2.vue b/src/views/bim/bimHome/components/ThreeView2.vue index 24bd8e2..de350e4 100644 --- a/src/views/bim/bimHome/components/ThreeView2.vue +++ b/src/views/bim/bimHome/components/ThreeView2.vue @@ -126,6 +126,11 @@ const loadSence = () => { gltfLoader.load('/jzc/scene.gltf', (gltf) => { var model = gltf.scene; roamdObjects = model.children[0].children; + model.traverse((obj)=>{ + if (enableGroup.indexOf(obj.name) != -1){ + xfobj.push(obj); + } + }); scene.add(model); }); }; @@ -438,6 +443,32 @@ const setBottom = () => { isRemoveBottom.value = !isRemoveBottom.value; } +// 消防 +const xiaof = () => { + xfobj.forEach((o)=>{ + xfadd(o,Math.random() < 0.3); + }) +} +let xfobj = []; +// 消防标签 +const xfadd = (obj,state)=> { + const texLoader= new THREE.TextureLoader(); + let texture = null; + if(state){ + texture= texLoader.load("/ygr.png"); + }else{ + texture = texLoader.load("/yg.png"); + } + const spriteMaterial = new THREE.SpriteMaterial({ + map: texture, + }); + const sprite = new THREE.Sprite(spriteMaterial); + // 控制精灵大小 + sprite.scale.set(5, 5, 5); + sprite.position.y = 5; //标签底部箭头和空对象标注点重合 + obj.add(sprite); //tag会标注在空对象obj对应的位置 +} +