|
|
|
@ -608,7 +608,7 @@ export class Arc extends Curve
|
|
|
|
|
let center = getCircleCenter(pt1, pt2, pt3);
|
|
|
|
|
if (!center)
|
|
|
|
|
{
|
|
|
|
|
this.ParseFromBul(pt1.applyMatrix4(this.OCSNoClone), pt3.applyMatrix4(this.OCSNoClone), 1e-5);//faker line
|
|
|
|
|
this.ParseFromBul(pt1.applyMatrix4(this.OCSNoClone), pt3.applyMatrix4(this.OCSNoClone), 1e-3);//faker line
|
|
|
|
|
return this;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -695,7 +695,7 @@ export class Arc extends Curve
|
|
|
|
|
let center = getCircleCenter(p1, p2, p3);
|
|
|
|
|
if (!center)//三点共线 使用faker arc
|
|
|
|
|
{
|
|
|
|
|
this.ParseFromBul(p1.applyMatrix4(this.OCSNoClone), p3.applyMatrix4(this.OCSNoClone), 1e-5);
|
|
|
|
|
this.ParseFromBul(p1.applyMatrix4(this.OCSNoClone), p3.applyMatrix4(this.OCSNoClone), 1e-3);
|
|
|
|
|
this.Update();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -705,7 +705,7 @@ export class Arc extends Curve
|
|
|
|
|
this._EndAngle = angle(p3.clone().sub(center));
|
|
|
|
|
if (equaln(this._StartAngle, this._EndAngle, 1e-5))//差不多也是三点共线,只不过逃逸了
|
|
|
|
|
{
|
|
|
|
|
this.ParseFromBul(p1.applyMatrix4(this.OCSNoClone), p3.applyMatrix4(this.OCSNoClone), 1e-5);
|
|
|
|
|
this.ParseFromBul(p1.applyMatrix4(this.OCSNoClone), p3.applyMatrix4(this.OCSNoClone), 1e-3);
|
|
|
|
|
this.Update();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|