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