- piccola correzione.

This commit is contained in:
Daniele Bariletti
2025-02-17 17:38:43 +01:00
parent 883c5a2dbd
commit 2a1f155e98
-9
View File
@@ -914,8 +914,6 @@ function TOOL.CreateParetina(nEdgeId, tbInfo, dPairAngCorr)
else
-- se ho una giunzione a T allora devo aggiustare la lunghezza dei pezzi sia che la faccia sia On, sia che sia Off
dLenPrev, dLen, _, dOffset = ManageJunction(PrevAng,dThPrev, dTh,tbInfo.nJunctionType, dLenPrev, dLen, tbInfo.bOnLoop)
-- se sono su un inloop allora cambio il verso dell'offset
--if tbInfo.nIn then dOffset = - dOffset end
-- setto il sideang da giunzione a T
local dSideAngDx = 90 - math.abs(PrevAng)
if tbInfo.bOnLoop then dSideAngDx = dSideAngDx * (-1) end
@@ -933,8 +931,6 @@ function TOOL.CreateParetina(nEdgeId, tbInfo, dPairAngCorr)
if not tbInfo.bOnLoop then
local dOffset = dTh * tan( 90 - PrevAng)
dLen = dLen + dOffset
-- se sono su un inloop allora cambio il verso dell'offset
--if tbInfo.nIn then dOffset = - dOffset end
if tbInfo.nPairMode == 2 then dXOffset = dXOffset + dOffset end
end
end
@@ -953,14 +949,11 @@ function TOOL.CreateParetina(nEdgeId, tbInfo, dPairAngCorr)
tbInfo.dSideAngL = dSideAngSx
if not tbInfo.bOnLoop then
dLen, dLenNext, dOffset, _ = ManageJunction(NextAng, dTh, dThNext, tbInfo.nJunctionType, dLen, dLenNext, tbInfo.bOnLoop)
--if tbInfo.nIn then dOffset = - dOffset end
if tbInfo.nPairMode == 1 then dXOffset = dXOffset + dOffset end
end
else
-- se ho una giunzione a T allora devo aggiustare la lunghezza dei pezzi sia che la faccia sia On, sia che sia Off
dLen, dLenNext, dOffset, _ = ManageJunction(NextAng, dTh, dThNext, tbInfo.nJunctionType, dLen, dLenNext, tbInfo.bOnLoop)
-- se sono su un inloop allora cambio il verso dell'offset
--if tbInfo.nIn then dOffset = - dOffset end
-- setto il sideang da giunzione a T
local dSideAngSx = 90 - math.abs(NextAng)
if tbInfo.bOnLoop then dSideAngSx = dSideAngSx * (-1) end
@@ -978,8 +971,6 @@ function TOOL.CreateParetina(nEdgeId, tbInfo, dPairAngCorr)
if not tbInfo.bOnLoop then
local dOffset = dTh * tan( 90 - NextAng)
dLen = dLen + dOffset
-- se sono su un inloop allora cambio il verso dell'offset
--if tbInfo.nIn then dOffset = - dOffset end
if tbInfo.nPairMode == 1 then dXOffset = dXOffset + dOffset end
end
end