From bdfd34c3c325c6bcdcd1d6dddbd7fac6b04b4925 Mon Sep 17 00:00:00 2001 From: ChenX Date: Wed, 12 Apr 2023 17:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:DXF=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E8=A7=92=E5=BA=A6=E6=A0=87=E6=B3=A8=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/ACAD/Entity2DxfEntity.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Add-on/ACAD/Entity2DxfEntity.ts b/src/Add-on/ACAD/Entity2DxfEntity.ts index 13e56b3b4..eadd0ac1b 100644 --- a/src/Add-on/ACAD/Entity2DxfEntity.ts +++ b/src/Add-on/ACAD/Entity2DxfEntity.ts @@ -146,6 +146,10 @@ export function Conver2DxfEntity(e: Entity, dxf: DxfWriter, blkName?: string) else if (e instanceof LineAngularDimension) { option.extrusion = e.Normal; + + let mtx = MakeMatrix4FromNormal(e.Normal);//任意轴坐标系 + let mtxInv = new Matrix4().getInverse(mtx); + return new AngularDimLines( { start: e.L1StartPoint, @@ -155,7 +159,7 @@ export function Conver2DxfEntity(e: Entity, dxf: DxfWriter, blkName?: string) start: e.L2StartPoint, end: e.L2EndPoint }, - e.DimPoint, + e.DimPoint.applyMatrix4(mtxInv), option ); }