From e45b8871897ccb55fc7ebd33f3470085167a987a Mon Sep 17 00:00:00 2001 From: DarioS Date: Tue, 25 May 2021 12:28:22 +0200 Subject: [PATCH] DataWall : - correzione per nesting. --- NestProcess.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NestProcess.lua b/NestProcess.lua index 5c91ada..05b81f9 100644 --- a/NestProcess.lua +++ b/NestProcess.lua @@ -197,6 +197,12 @@ for nPartId, nCount in pairs( PART) do end -- altrimenti cerco la regione sopra else + -- cancello precedenti contorni calcolati + local nOldONId = EgtGetFirstNameInGroup( nOutlineLayer, 'ON_TMP') + if nOldONId then + EgtErase( nOldONId) + end + -- cerco la regione sopra local nReg for i = 1, 4 do local sRegName = string.format( '%d-Top', i) @@ -209,12 +215,14 @@ for nPartId, nCount in pairs( PART) do if not nReg then EgtOutLog("Errore: regione superiore non trovata") end + -- recupero contorno della regione local OutId, nCnt = EgtExtractSurfFrChunkLoops( nReg, 0, nOutlineLayer) if OutId and nCnt > 1 then for i = 2, nCnt do EgtErase( OutId + i - 1) end end + EgtSetName( OutId, 'ON_TMP') nOutline = OutId end