优化:DXF导出角度标注的实现

pull/2165/MERGE
ChenX 1 year ago
parent 2f5e6a3a82
commit bdfd34c3c3

@ -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
);
}

Loading…
Cancel
Save