Browse Source

优化高亮显示

dev
刘向辉 3 years ago
parent
commit
0fdf738fba
  1. 2
      src/app/babylon/controller/scene-manager.ts
  2. 5
      src/app/babylon/tool/babylon-tool.ts
  3. 2
      src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts
  4. 2
      src/app/babylon/view/mark-window/mark-window.ts

2
src/app/babylon/controller/scene-manager.ts

@ -285,7 +285,7 @@ export class SceneManager {
blurVerticalSize: 1.5, blurVerticalSize: 1.5,
blurHorizontalSize: 1.5, blurHorizontalSize: 1.5,
}); });
this.openInnerGlow(true); this.openInnerGlow(false);
// this.highLightLayer.innerGlow = true; // this.highLightLayer.innerGlow = true;
this.highLightLayer.outerGlow = true; this.highLightLayer.outerGlow = true;
} }

5
src/app/babylon/tool/babylon-tool.ts

@ -51,7 +51,7 @@ export class BabylonTool {
static getWorldPosition(mesh: AbstractMesh): Vector3 { static getWorldPosition(mesh: AbstractMesh): Vector3 {
let result = mesh.position; let result = mesh.position;
if (mesh.parent != null) { if (mesh.parent != null) {
result = mesh.absolutePosition; result = mesh.getAbsolutePosition();
} }
return result.clone(); return result.clone();
} }
@ -436,8 +436,6 @@ export class BabylonTool {
public static limitPI(value: number) { public static limitPI(value: number) {
let result = value; let result = value;
console.log("输入", result);
while (result < - Math.PI) { while (result < - Math.PI) {
result += Math.PI * 2; result += Math.PI * 2;
} }
@ -445,7 +443,6 @@ export class BabylonTool {
while (result > Math.PI * 2) { while (result > Math.PI * 2) {
result -= Math.PI * 2; result -= Math.PI * 2;
} }
console.log("输出", result);
return result; return result;
} }

2
src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts

@ -779,8 +779,6 @@ export class FacilityInfoInSceneWindow extends UIBase {
} }
console.log("双击", result);
if (result != null) { if (result != null) {
let facilityItem: FacilityInfoUIItem = FacilityInfoInSceneWindow.instance.getFacilityItem(result); let facilityItem: FacilityInfoUIItem = FacilityInfoInSceneWindow.instance.getFacilityItem(result);
facilityItem.lookAt(); facilityItem.lookAt();

2
src/app/babylon/view/mark-window/mark-window.ts

@ -860,8 +860,6 @@ export class MarkWindow extends UIBase {
//取消选中 //取消选中
instance.selectMarkDataFrom3d(instance.currentMarkInfo, false); instance.selectMarkDataFrom3d(instance.currentMarkInfo, false);
} }
} }
} }
break; break;

Loading…
Cancel
Save