|
|
@ -554,6 +554,8 @@ export class AlignedDimension extends Entity
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.WriteAllObjectRecord();
|
|
|
|
this.WriteAllObjectRecord();
|
|
|
|
let inv = this.OCSInv;
|
|
|
|
let inv = this.OCSInv;
|
|
|
|
|
|
|
|
let inv0 = inv.clone().setPosition(0, 0, 0);
|
|
|
|
|
|
|
|
let vec0 = vec.clone().applyMatrix4(inv0);
|
|
|
|
for (let i of indexList)
|
|
|
|
for (let i of indexList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (i === 5)
|
|
|
|
if (i === 5)
|
|
|
@ -561,8 +563,7 @@ export class AlignedDimension extends Entity
|
|
|
|
let dalucs = this.DalUcs;
|
|
|
|
let dalucs = this.DalUcs;
|
|
|
|
//开始拖拽引线dragPt
|
|
|
|
//开始拖拽引线dragPt
|
|
|
|
this.isDragLeadOutPt = true;
|
|
|
|
this.isDragLeadOutPt = true;
|
|
|
|
vec = vec.clone().transformDirection(inv);
|
|
|
|
this._LeadOutPts.dragPt.add(vec0);
|
|
|
|
this._LeadOutPts.dragPt.add(vec);
|
|
|
|
|
|
|
|
let calcV = this._LeadOutPts.dragPt.clone().applyMatrix4(dalucs).sub(midPoint(this._ArmP1, this._ArmP2).applyMatrix4(dalucs));
|
|
|
|
let calcV = this._LeadOutPts.dragPt.clone().applyMatrix4(dalucs).sub(midPoint(this._ArmP1, this._ArmP2).applyMatrix4(dalucs));
|
|
|
|
this._LeadOutOffsetY = calcV.y;
|
|
|
|
this._LeadOutOffsetY = calcV.y;
|
|
|
|
this._LeadOutOffsetX = Math.abs(calcV.x);
|
|
|
|
this._LeadOutOffsetX = Math.abs(calcV.x);
|
|
|
@ -580,11 +581,10 @@ export class AlignedDimension extends Entity
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vec = vec.clone().transformDirection(inv);
|
|
|
|
|
|
|
|
if (i === 0)
|
|
|
|
if (i === 0)
|
|
|
|
this._FootP1.add(vec);
|
|
|
|
this._FootP1.add(vec0);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
this._FootP2.add(vec);
|
|
|
|
this._FootP2.add(vec0);
|
|
|
|
|
|
|
|
|
|
|
|
this.ChangeFootPt();
|
|
|
|
this.ChangeFootPt();
|
|
|
|
}
|
|
|
|
}
|
|
|
|