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,
blurHorizontalSize: 1.5,
});
this.openInnerGlow(true);
this.openInnerGlow(false);
// this.highLightLayer.innerGlow = 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 {
let result = mesh.position;
if (mesh.parent != null) {
result = mesh.absolutePosition;
result = mesh.getAbsolutePosition();
}
return result.clone();
}
@ -436,8 +436,6 @@ export class BabylonTool {
public static limitPI(value: number) {
let result = value;
console.log("输入", result);
while (result < - Math.PI) {
result += Math.PI * 2;
}
@ -445,7 +443,6 @@ export class BabylonTool {
while (result > Math.PI * 2) {
result -= Math.PI * 2;
}
console.log("输出", 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) {
let facilityItem: FacilityInfoUIItem = FacilityInfoInSceneWindow.instance.getFacilityItem(result);
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);
}
}
}
break;

Loading…
Cancel
Save