trp:隧道仿真页面,去除标签回显和隐藏附着点

This commit is contained in:
trp
2024-12-29 19:12:05 +08:00
parent aefdd23925
commit b64d943a5e
4 changed files with 22 additions and 14 deletions

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();
//获取附着点的世界坐标系