From 267fc9daa3f417be40dcf469d8328dceaa17b274 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Mon, 26 Jan 2026 15:42:42 +0100 Subject: [PATCH] - in PreSimulationLib modificata ottimizzazione punti di controllo --- LuaLibs/PreSimulationLib.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/LuaLibs/PreSimulationLib.lua b/LuaLibs/PreSimulationLib.lua index ae97163..869ba1f 100644 --- a/LuaLibs/PreSimulationLib.lua +++ b/LuaLibs/PreSimulationLib.lua @@ -124,14 +124,11 @@ local function GetCollisionPointsToCheck( Edge, dDepthToMachine) or AreSameOrOppositeVectorApprox( Edge.vtEdge, Z_AX()) -- aggiunta punti - -- inizio e fine solo se lato obliquo + table.insert( PointsToCheck, ptStart) if not bIsEdgeParallelToMainDirection then - table.insert( PointsToCheck, ptStart) - end - table.insert( PointsToCheck, ptMid) - if not bIsEdgeParallelToMainDirection then - table.insert( PointsToCheck, ptEnd) + table.insert( PointsToCheck, ptMid) end + table.insert( PointsToCheck, ptEnd) return PointsToCheck end