|
@@ -797,12 +797,12 @@ export class Measure extends ctrlPolygon{
|
|
|
|
|
|
|
|
|
createGuideLines(){//add 固定点垂线的辅助线 可以多段
|
|
|
- var guideLine = LineDraw.createFatLine(this.guideLinePoints ,{material:this.getLineMat('guide')} )
|
|
|
+ var guideLine = LineDraw.createFatLine(this.guideLinePoints ,{material:this.getLineMat('guide2'), renderOrderShift:-1} )
|
|
|
this.guideLine = guideLine //暂时也叫这个名字
|
|
|
this.add(guideLine);
|
|
|
}
|
|
|
updateGuideLines(){
|
|
|
- this.guideLine.updateLine(this.guideLine, this.guideLinePoints)
|
|
|
+ LineDraw.updateLine(this.guideLine, this.guideLinePoints)
|
|
|
}
|
|
|
|
|
|
|
|
@@ -943,7 +943,17 @@ export class Measure extends ctrlPolygon{
|
|
|
gapSize: 0.02,
|
|
|
dashed: true,
|
|
|
lineWidth: 2
|
|
|
- })
|
|
|
+ }),
|
|
|
+ guide2: LineDraw.createFatLineMat(Object.assign({}, lineDepthInfo,{
|
|
|
+ color:config.measure.guide.color,
|
|
|
+ dashSize: 0.1,
|
|
|
+ gapSize: 0.02,
|
|
|
+ dashed: true,
|
|
|
+ lineWidth: 2,
|
|
|
+ useDepth :true,
|
|
|
+ }))
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -974,7 +984,7 @@ export class Measure extends ctrlPolygon{
|
|
|
}
|
|
|
|
|
|
|
|
|
- if(type != 'guide'){
|
|
|
+ if(!type.includes('guide')){
|
|
|
return Measure.lineMats[type+color]
|
|
|
}else return Measure.lineMats[type]
|
|
|
|