From 0d767e7b2ffb39579556dbd9408e96b81d53c5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=89?= <940119273@qq.com> Date: Mon, 8 Apr 2024 07:53:56 +0000 Subject: [PATCH] =?UTF-8?q?!2664=20=E5=BC=80=E5=8F=91:=E8=BF=98=E5=8E=9F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Geometry/DrillParse/CollisionDetection.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Geometry/DrillParse/CollisionDetection.ts b/src/Geometry/DrillParse/CollisionDetection.ts index ad4fd60c2..a238dbc4d 100644 --- a/src/Geometry/DrillParse/CollisionDetection.ts +++ b/src/Geometry/DrillParse/CollisionDetection.ts @@ -19,12 +19,15 @@ export class CollisionDetection let boxCache: Map = new Map(); + const OCSInv = this._Boards[0].OCSInv; + for (let b of this._Boards) { if (b.BoardProcessOption.drillType !== DrillType.None) { this.BoardGeList.push(new BoardGetFace(b)); - boxCache.set(b, b.BoundingBoxInOCS); + //记录在Boards[0]坐标系上的包围盒 + boxCache.set(b, b.GetBoundingBoxInMtx(OCSInv)); } }