!2511 修复:不同刀具,不同深度,不同面二维刀路路径,首尾相接时错误合并

pull/2304/MERGE
黄诗津 9 months ago committed by ChenX
parent 8b2c97fb22
commit 8c5c82fb6e

@ -456,13 +456,25 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
await CommandWrap(async () =>
{
let cuGourp = curveLinkGroup(finalCurve);
if (cuGourp)
const colorIndexMap = new Map<number, Curve[]>();
for (const curve of finalCurve)
{
const colorIndex = curve.ColorIndex;
if (!colorIndexMap.has(colorIndex))
colorIndexMap.set(colorIndex, [curve]);
else
colorIndexMap.get(colorIndex).push(curve);
}
const cuGroup = Array.from(colorIndexMap.values())
.flatMap(curveGroup => curveLinkGroup(curveGroup));
if (cuGroup)
{
let knifeSizeMap = new Map<string, number>();
const rightStore = RightPanelStore.GetInstance();
for (let g of cuGourp)
for (let g of cuGroup)
{
for (let c of g)
{

Loading…
Cancel
Save