- correzione a FreeContour.GetEdgeToMachineFromVector

This commit is contained in:
luca.mazzoleni
2025-07-04 09:46:23 +02:00
parent e59ca27cdf
commit 95346a26d7
+4 -1
View File
@@ -768,7 +768,10 @@ local function GetEdgeToMachineFromVector( nSurfId, nFacet, vtOrtho)
local nEdgeIndMax = 0
local dMaxComp = - GEO.INFINITO
for i = 1, #EdgesEgt do
local vtN = -EdgesEgt[i].Norm
local vtN = EdgesEgt[i].Norm
if EdgesEgt[i].Open then
vtN = -vtN
end
local dComp = vtN * vtOrtho
if dComp > dMaxComp then
nEdgeIndMax = i -1