优化圆的倒角结果

pull/195/MERGE
ChenX_Mac 6 years ago
parent fa221fce2c
commit 1c893a9dd6

@ -57,7 +57,8 @@ function CircleEnResToArc(enRes: PromptEntityResult)
{
if (enRes.Entity instanceof Circle)
{
let arc = new Arc(new Vector3(), enRes.Entity.Radius, 0, Math.PI * 2);
let an = angle(enRes.Point.clone().applyMatrix4(enRes.Entity.OCSInv)) + Math.PI;
let arc = new Arc(new Vector3(), enRes.Entity.Radius, an, an + 0.1);
arc.ApplyMatrix(enRes.Entity.OCS);
arc.Center = enRes.Entity.Center;
enRes.Entity = arc;

@ -202,12 +202,6 @@ export class Circle extends Curve
return []
}
getangle(pt1: Vector3, pt2: Vector3)
{
let x = pt1.x - pt2.x;
let y = pt1.y - pt2.y;
return Math.atan2(y, x);
}
IntersectWith(curve: Curve, intType: IntersectOption): Vector3[]
{
if (curve instanceof Arc)

Loading…
Cancel
Save