Merge pull request 'trp:隧道仿真页面,去除标签回显和隐藏附着点' (#400) from trp_dev into dengjie

Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/400
This commit is contained in:
2024-12-29 11:28:42 +00:00
3 changed files with 8 additions and 3 deletions

View File

@@ -210,7 +210,6 @@ const getTunnel = () => {
getTunnelDetail(params.tunnelId).then((res) => {
if (res?.code === 1000) {
form.value = res.data;
// console.log(form.value.tunnelAlias);
tunnelAlias = form.value.tunnelAlias;
}
});
@@ -346,6 +345,7 @@ async function handleMounted() {
// console.log(modelList.value);
// console.log("init", params.tunnelId);
demo.previewtunnelModeInit(toRaw(modelList.value), fanData);
console.log("prew",modelList.value,fanData)
// setInterval("demo.previewtunnelModeInit(toRaw(modelList.value), fanData)", "1000")
demo.SignsInf(tunnelAlias, String(params.tunnelLen.value));

View File

@@ -205,7 +205,12 @@ export default class Demo {
// child.material.emissive = child.material.color
// child.material.emissiveMap = child.material.map
}
//是否显示附着点
pointsVisible(isEnable = true) {
this.points.forEach((element) => {
element.material.visible = isEnable;
});
}
// 添加轨道控制器
/**
* @param {Object} OrbitControls 轨道控制器
@@ -328,6 +333,7 @@ export default class Demo {
// 处理点击左右键触发的事件
__handleListenerClickRLEvent(isClickModels, e) {
e.preventDefault();
if (!this.enableLeftBtn) return;
clearTimeout(this.EventTimer);
this.EventTimer = setTimeout(() => {
const mouse = new this.THREE.Vector2();

View File

@@ -1,6 +1,5 @@
import toImg from "../utils/EquipmentTag";
export function handleRClick(targetPoint) {
return;
this.clearTagsObj();
const worldPosition = new this.THREE.Vector3();
//获取附着点的世界坐标系