diff --git a/src/Add-on/FilletUtils.ts b/src/Add-on/FilletUtils.ts index c97cc9084..816d9d8db 100644 --- a/src/Add-on/FilletUtils.ts +++ b/src/Add-on/FilletUtils.ts @@ -451,6 +451,8 @@ export class FilletUtils //------1.求交 let l = new Line(brRes.Point, ptRes.Point); l.ApplyMatrix(br.OCSInv); + l.StartPoint = l.StartPoint.setZ(0); + l.EndPoint = l.EndPoint.setZ(0); let ipts = l.IntersectWith(brContour, IntersectOption.ExtendThis); @@ -463,13 +465,9 @@ export class FilletUtils let res = this.FilletPolyLineSelf(es1, es2); if (res && res.cu1) - { - let cu1OcsInv = res.cu1.OCSInv; - brContour.CopyFrom(res.cu1.ApplyMatrix(cu1OcsInv)); - return brContour; - } + return res.cu1 as Polyline; else - return "倒角失败" + return "倒角失败"; } /**