|
@@ -215,7 +215,7 @@ export class VtkModel {
|
|
|
cam.setPosition(495544.15625, 5403554.25, 1*(467.62999725341797+7000));//相机位置
|
|
|
}
|
|
|
|
|
|
- //显示巷道名称
|
|
|
+ //巷道名称
|
|
|
initPname() {
|
|
|
fetch('src/assets/3d/pipname.json')
|
|
|
.then(response => response.json()).then(data => {
|
|
@@ -253,9 +253,13 @@ removePname(){
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+//清空灾源
|
|
|
+delSoures(){
|
|
|
+ this.removeSoure();
|
|
|
+ this.soureActors=[];
|
|
|
+}
|
|
|
//添加一个灾源点
|
|
|
- initSoures(pid,site){
|
|
|
+ addSoures(pid,site){
|
|
|
let pipe =this.pipeByPid(pid);
|
|
|
let point1 = this.pointByPipeNodeId(pipe.snId);
|
|
|
let point2 = this.pointByPipeNodeId(pipe.enId);
|
|
@@ -278,7 +282,7 @@ removePname(){
|
|
|
actor.rotateY(45);// 绕y轴旋转
|
|
|
actor.setScale(5,5,5);//放大
|
|
|
this.soureActors.push(actor);
|
|
|
- this.renderer.addActor(actor);
|
|
|
+ // this.renderer.addActor(actor);
|
|
|
}
|
|
|
//显示灾源点
|
|
|
showSoure(){
|