!1153 修复:批量修改封边显示错误问题

pull/1153/MERGE
ZoeLeeFZ 4 years ago committed by ChenX
parent 8ed17c8c01
commit f95067c032

@ -163,9 +163,10 @@ export function GetBoardHighSeal(br: Board, sealcus: Curve[])
if (sealcus.length !== highSeals.length || !br.IsSpecialShape)
{
highSeals.length = 0;
let dir = Math.sign(br.ContourCurve.Area2);
for (let c of sealcus)
{
let derv = c.GetFistDeriv(0);
let derv = c.GetFistDeriv(0).multiplyScalar(dir);
let an = angle(derv);
if (an > -1e-6 && an < Math.PI / 2)
highSeals.push({ size: sealDown });

Loading…
Cancel
Save