- in Lapjoint corretto step in caso due facce verso l'alto

This commit is contained in:
luca.mazzoleni
2025-07-24 14:32:38 +02:00
parent 76624de1a5
commit 099b159aae
+5 -3
View File
@@ -2020,11 +2020,13 @@ local function MakeSideGrooveByMill( Proc, nFacet, nRawId, b3Raw, sCustomMach, d
dStepOri = dStep
if dStep < GEO.EPS_SMALL then dStep = 0.75 * dMaxMat end
local nStep = ceil( ( dThick - dMaxMat) / dStep)
dStep = max( ( dThick - dMaxMat) / max( nStep, 1), 0)
local dMaxElev = max( ( nStep + 1) * dStep - GEO.EPS_SMALL, 0)
-- tasca aperta sopra non necessita di MaxElev
local dMaxElev
-- tasca aperta sopra non necessita di MaxElev e mantiene lo step originale
if Proc.Fct == 2 and Proc.AffectedFaces.Top then
dMaxElev = nil
else
dStep = max( ( dThick - dMaxMat) / max( nStep, 1), 0)
dMaxElev = max( ( nStep + 1) * dStep - GEO.EPS_SMALL, 0)
end
if nSinglePass and nSinglePass > 0 then
dStep = 0