//id列表 let _logicOutlineGlowIds = new Set(); //设置物体轮廓线发光效果 //"body"为整体发光,"outline"为轮廓线发光 function setLogicOutlineGlowEffect(obj) { removeLogicOutlineGlowEffect(); if (obj == null || obj.length < 1) { return; } _modeler.setGlowEffectById(obj, { type: "outline", color: new Glodon.Web.Graphics.Color(139, 0, 0, 1), intensity: 0.4, spread: 3 }); _viewer.render(); _logicOutlineGlowIds = new Set(obj); } //移除物体轮廓线发光效果 function removeLogicOutlineGlowEffect() { if (_logicOutlineGlowIds.size > 0) { var myArray = Array.from(_logicOutlineGlowIds); _modeler.removeGlowEffectById(myArray); _viewer.render(); _logicOutlineGlowIds.clear(); } }