- in LeadInOutLib calcolo attacco tangenziale con funzioni Tool Collision Avoidance e refactoring

- in FACEBYBLADE GetLeadInOut si aggiorna se necessario la TotalLength
This commit is contained in:
luca.mazzoleni
2025-12-18 14:45:37 +01:00
parent 3136604e14
commit 2bcaeca91f
2 changed files with 82 additions and 58 deletions
+4
View File
@@ -70,6 +70,8 @@ local function GetLeadInOut( Machining, EdgeToMachine, bIsSplitFeature)
LeadIn.dTangentDistance = 0
LeadOut.dPerpDistance = EdgeToMachine.dElevation + BeamData.CUT_SIC - Machining.dRadialOffset
LeadOut.dTangentDistance = 0
LeadIn.dTotalLength = sqrt( LeadIn.dPerpDistance ^ 2 + LeadIn.dTangentDistance ^ 2)
LeadOut.dTotalLength = sqrt( LeadOut.dPerpDistance ^ 2 + LeadOut.dTangentDistance ^ 2)
elseif Machining.sEdgeUsage == 'Reduced' then
LeadIn.dStartAddLength = - FACEBYBLADE.GetPathReductionLength( Machining.nToolIndex, Machining.dMaxRadialOffset)
LeadOut.dEndAddLength = - FACEBYBLADE.GetPathReductionLength( Machining.nToolIndex, Machining.dMaxRadialOffset)
@@ -77,6 +79,8 @@ local function GetLeadInOut( Machining, EdgeToMachine, bIsSplitFeature)
LeadIn.dTangentDistance = 0
LeadOut.dPerpDistance = EdgeToMachine.dElevation + BeamData.CUT_SIC - Machining.dRadialOffset
LeadOut.dTangentDistance = 0
LeadIn.dTotalLength = sqrt( LeadIn.dPerpDistance ^ 2 + LeadIn.dTangentDistance ^ 2)
LeadOut.dTotalLength = sqrt( LeadOut.dPerpDistance ^ 2 + LeadOut.dTangentDistance ^ 2)
end
-- se lavorazione con OppositeToolDirection o ridotta l'attacco va corretto