in SawPlusChain:

- Chainsawing rinominata Mortising
- GetVerticalSteps e GetHorizontalSteps sostituiti da funzione unica GetMachiningSteps in BeamLib
- variabili specifiche della strategia ora fanno parte direttamente della tabella SawPlusChain
- alcune correzioni
This commit is contained in:
luca.mazzoleni
2024-05-08 12:58:48 +02:00
parent 1572648a7e
commit efb805cf98
2 changed files with 100 additions and 123 deletions
+13 -4
View File
@@ -792,10 +792,6 @@ end
-------------------------------------------------------------------------------------------------------------
function BeamLib.IsSplittedPartPhase( nPhase)
if not nPhase then
nPhase = EgtGetCurrPhase()
end
local sVal = BeamLib.GetPhaseType( nPhase)
return ( sVal == 'END' or sVal == 'MID2' or sVal == 'END2')
end
@@ -1216,5 +1212,18 @@ function BeamLib.GetFacetsInfo( Proc, b3Raw)
return Face
end
-------------------------------------------------------------------------------------------------------------
function BeamLib.GetMachiningSteps( dMachiningDepth, dStep)
local MachiningSteps = {}
MachiningSteps.StepLength = 0
MachiningSteps.Count = ceil( ( dStep - 10 * GEO.EPS_SMALL) / dMachiningDepth)
if MachiningSteps.Count > 1 then
MachiningSteps.StepLength = ( dStep - dMachiningDepth) / ( MachiningSteps.Count - 1)
end
return MachiningSteps
end
-------------------------------------------------------------------------------------------------------------
return BeamLib