trp:隧道仿真页面,去除标签回显和隐藏附着点
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import toImg from "../utils/EquipmentTag";
|
||||
export function handleRClick(targetPoint) {
|
||||
return;
|
||||
this.clearTagsObj();
|
||||
const worldPosition = new this.THREE.Vector3();
|
||||
//获取附着点的世界坐标系
|
||||
|
||||
Reference in New Issue
Block a user