|
|
|
@ -1042,14 +1042,14 @@ export class Polyline extends Curve
|
|
|
|
|
let notChangeP = this.GetPointAtParam(nextIndex);
|
|
|
|
|
|
|
|
|
|
//原先的弦长的一半
|
|
|
|
|
let OldChordLengthHalf = needChangeP.distanceTo(notChangeP) * 0.5;
|
|
|
|
|
let oldChordLengthHalf = needChangeP.distanceTo(notChangeP) * 0.5;
|
|
|
|
|
|
|
|
|
|
//弓高
|
|
|
|
|
let arcHeight = OldChordLengthHalf * d.bul;
|
|
|
|
|
let arcHeight = oldChordLengthHalf * d.bul;
|
|
|
|
|
|
|
|
|
|
needChangeP.add(vec);
|
|
|
|
|
|
|
|
|
|
let newChordLengthHalf = (needChangeP.distanceTo(notChangeP) * 0.5);
|
|
|
|
|
let newChordLengthHalf = needChangeP.distanceTo(notChangeP) * 0.5;
|
|
|
|
|
|
|
|
|
|
d.bul = arcHeight / newChordLengthHalf;
|
|
|
|
|
}
|
|
|
|
|