Completata gestione scrittura dati nelle info del DISP

This commit is contained in:
andrea.villa
2025-05-20 15:44:32 +02:00
parent 3198287dfe
commit cdfebf83fb
4 changed files with 99 additions and 45 deletions
+20 -3
View File
@@ -755,8 +755,8 @@ function FeatureLib.CalculateFeatureNotClampableLengths( Proc, Part)
local dNotClampableLengthHead = 0
local dNotClampableLengthTail = 0
-- TODO al momento con meno di 3 facce si restituisce 0
if Proc.nFct < 3 then
-- TODO al momento con almeno 3 facce si restituisce 0
if true or Proc.nFct < 3 then
-- eventuale segnalazione ingombro di testa o coda
local dMinHIng = min( 0.5 * BeamData.VICE_MINH, 0.5 * Part.b3Raw:getDimZ())
local dMinZ = max( BeamData.MIN_HEIGHT, 0.35 * Part.b3Raw:getDimZ())
@@ -816,12 +816,29 @@ function FeatureLib.CalculateFeatureNotClampableLengths( Proc, Part)
return NotClampableLength
end
-------------------------------------------------------------------------------------------------------------
function FeatureLib.GetFeatureRotationNotClampableLengths( Proc, Part, nRotation)
local nPartIndex = Part.nIndexInParts
local nProcIndex = Proc.nIndexInVProc
local Rotations = PROCESSINGS[nPartIndex].Rotation
local dLenOnHead = 0
local dLenOnTail = 0
-- controllo che la rotazione sia attiva
if string.sub( Part.ChosenCombination, nRotation, nRotation) == '1' then
dLenOnHead = Rotations[nRotation][nProcIndex].NotClampableLength.dNotClampableLengthHead
dLenOnTail = Rotations[nRotation][nProcIndex].NotClampableLength.dNotClampableLengthTail
end
return dLenOnHead, dLenOnTail
end
-------------------------------------------------------------------------------------------------------------
function FeatureLib.GetFeatureMaxNotClampableLengths( Proc, Part)
local nPartIndex = Part.nIndexInParts
local nProcIndex = Proc.nIndexInVProc
local Rotations = PROCESSINGS[nPartIndex].Rotation
local dMaxOnHead = 0
local dMaxOnTail = 0
for i = 1, #Part.CombinationList do