修复:多段线偏移时,提高连接的容差值,避免某些情况下偏移后无法连接

pull/1559/MERGE
ChenX 3 years ago
parent 76f500519a
commit 76111bc38e

@ -0,0 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`圆裁剪精度 1`] = `1`;
exports[`圆裁剪精度 2`] = `"8360.62214"`;
exports[`圆裁剪精度 3`] = `1`;
exports[`圆裁剪精度 4`] = `"8385.98689"`;

File diff suppressed because one or more lines are too long

@ -88,8 +88,8 @@ export class HistoricManage extends CADObject
key: "no_command_his" key: "no_command_his"
}); });
} }
else // else jest会警告这个
console.error("命令未执行中,但是却产生了错误了记录!"); // console.error("命令未执行中,但是却产生了错误了记录!");
} }
if (this._SignalCommandHistory && CommandState.CommandIng) if (this._SignalCommandHistory && CommandState.CommandIng)

@ -649,7 +649,7 @@ export class OffsetPolyline
{ {
used.add(minR.curve); used.add(minR.curve);
preP = minR.e; preP = minR.e;
let status = pl.Join(minR.curve, false, 5e-2); let status = pl.Join(minR.curve, false, 8e-2);
if (status !== Status.True) if (status !== Status.True)
console.warn("连接失败"); console.warn("连接失败");
return minR.to; return minR.to;

Loading…
Cancel
Save