From 66e2bd6e45d6990a8b30ecf39791437618ca85cd Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Fri, 9 Aug 2024 12:40:59 +0200 Subject: [PATCH] - in Collect analisi facce limitata a feature che ne hanno meno di 50 --- LuaLibs/WallExec.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LuaLibs/WallExec.lua b/LuaLibs/WallExec.lua index 070a0e7..f86077e 100644 --- a/LuaLibs/WallExec.lua +++ b/LuaLibs/WallExec.lua @@ -216,8 +216,10 @@ function WallExec.CollectFeatures( PartId, b3Raw) Proc.DistanceToRawPart = WL.GetProcessDistanceToRawPart( Proc, b3Raw) -- recupero informazioni sulle facce della feature Proc.Face = {} - for i = 1, Proc.Fct do - Proc.Face[i] = { Id = i - 1, VtN = EgtSurfTmFacetNormVersor( Proc.Id, i - 1, GDB_ID.ROOT ), Elevation = WL.GetFaceElevation( Proc.Id, i - 1, PartId)} + if Proc.Fct < 50 then + for i = 1, Proc.Fct do + Proc.Face[i] = { Id = i - 1, VtN = EgtSurfTmFacetNormVersor( Proc.Id, i - 1, GDB_ID.ROOT ), Elevation = WL.GetFaceElevation( Proc.Id, i - 1, PartId)} + end end end if Proc.Box and not Proc.Box:isEmpty() then