- in STR0012 la faccia aggiuntiva viene sempre estesa fino al grezzo

This commit is contained in:
luca.mazzoleni
2026-02-02 09:50:52 +01:00
parent 67a595e311
commit b0531f8df8
2 changed files with 12 additions and 7 deletions
+4 -5
View File
@@ -51,23 +51,22 @@ local function GetLeadInOut( Machining, EdgeToMachine, bIsSplitFeature)
end
-- in caso di percorso ridotto gli attacchi vanno adeguati
--TODO VEDERE SE IL CALCOLO E' CORRETTO
if Machining.sEdgeUsage == 'Guillotine' then
local dGuillotineLengthToMachine = 1
LeadIn.dStartAddLength = ( - EdgeToMachine.dLength + dGuillotineLengthToMachine) / 2
LeadOut.dEndAddLength = ( - EdgeToMachine.dLength + dGuillotineLengthToMachine) / 2
LeadIn.dPerpDistance = LeadIn.dPerpDistance - Machining.dRadialOffset
LeadIn.dPerpDistance = EdgeToMachine.dElevation + BeamData.CUT_SIC - Machining.dRadialOffset
LeadIn.dTangentDistance = 0
LeadOut.dPerpDistance = LeadOut.dPerpDistance - Machining.dRadialOffset
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)
LeadIn.dPerpDistance = LeadIn.dPerpDistance - Machining.dRadialOffset
LeadIn.dPerpDistance = EdgeToMachine.dElevation + BeamData.CUT_SIC - Machining.dRadialOffset
LeadIn.dTangentDistance = 0
LeadOut.dPerpDistance = LeadOut.dPerpDistance - Machining.dRadialOffset
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)