- in BeamExec.GetProcessings per HeadcutInfo e TailcutInfo si usano gli indici di rotazione canonici (1,2,3,4 per std e 5,6,7,8 per invertiti)
This commit is contained in:
@@ -1394,6 +1394,7 @@ function BeamExec.GetProcessings( PARTS, bIsFlipRot)
|
||||
-- per ogni rotazione
|
||||
for nRotIndex = 1, 4 do
|
||||
local nOffsetIndex = EgtIf( nInvertIndex == 2, 4, 0)
|
||||
-- le rotazioni sono 1,2,3,4 (0, 90, 180, 270) e 5,6,7,8 (le stesse invertite)
|
||||
local nIndex = nRotIndex + nOffsetIndex
|
||||
local HeadcutInfo, TailcutInfo
|
||||
-- si calcolano le feature solo se la rotazione può essere presa in considerazione
|
||||
@@ -1408,15 +1409,14 @@ function BeamExec.GetProcessings( PARTS, bIsFlipRot)
|
||||
-- inserisco una tabella vuota
|
||||
table.insert( vProcRot, {})
|
||||
end
|
||||
local sRotation = GetRotationName( nRotIndex, nInvertIndex)
|
||||
if HeadcutInfo then
|
||||
PARTS[nPart].HeadcutInfo[sRotation] = {
|
||||
PARTS[nPart].HeadcutInfo[nIndex] = {
|
||||
OffsetX = HeadcutInfo.OffsetX,
|
||||
vtN = HeadcutInfo.vtN
|
||||
}
|
||||
end
|
||||
if TailcutInfo then
|
||||
PARTS[nPart].TailcutInfo[sRotation] = {
|
||||
PARTS[nPart].TailcutInfo[nIndex] = {
|
||||
OffsetX = TailcutInfo.OffsetX,
|
||||
vtN = TailcutInfo.vtN
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user