From 5b20565156b67987187b90a4061dd782f6f4235f Mon Sep 17 00:00:00 2001 From: ChenX Date: Wed, 19 Feb 2020 14:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=86=E5=BC=A7=E6=B1=82=E4=BA=A4=E8=A1=A5?= =?UTF-8?q?=E5=85=A8=E6=AD=A3=E7=A1=AE=E7=9A=84=E5=AE=B9=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DatabaseServices/Entity/Arc.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DatabaseServices/Entity/Arc.ts b/src/DatabaseServices/Entity/Arc.ts index 4693a72f1..fb0e6ce1f 100644 --- a/src/DatabaseServices/Entity/Arc.ts +++ b/src/DatabaseServices/Entity/Arc.ts @@ -448,7 +448,7 @@ export class Arc extends Curve return this; } - IntersectWith2(curve: Curve, intType: IntersectOption) + IntersectWith2(curve: Curve, intType: IntersectOption, tolerance = 1e-6) { if (curve instanceof Arc) { @@ -456,14 +456,14 @@ export class Arc extends Curve } if (curve instanceof Line) { - return SwapParam(IntersectLineAndArc(curve, this, reverseIntersectOption(intType))); + return SwapParam(IntersectLineAndArc(curve, this, reverseIntersectOption(intType), tolerance)); } if (curve instanceof Circle) { - return SwapParam(IntersectCircleAndArc(curve, this, reverseIntersectOption(intType))); + return SwapParam(IntersectCircleAndArc(curve, this, reverseIntersectOption(intType), tolerance)); } if (curve instanceof Polyline) - return SwapParam(IntersectPolylineAndCurve(curve, this, reverseIntersectOption(intType))); + return SwapParam(IntersectPolylineAndCurve(curve, this, reverseIntersectOption(intType), tolerance)); if (curve instanceof Ellipse) return SwapParam(IntersectEllipseAndCircleOrArc(curve, this, intType));