- in STR0012 la faccia aggiuntiva viene sempre estesa fino al grezzo
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user