- in BLADEKEEPWASTE corretto calcolo percentuale lavorata se incompleta
This commit is contained in:
@@ -164,6 +164,7 @@ function STR0005.Make( bAddMachining, Proc, Part, CustomParameters)
|
||||
end
|
||||
end
|
||||
-- TODO migliorare calcolo area lavorata; se ho il codolo ha senso l'incompleta? se incompleta con codolo faccio i cubetti??
|
||||
-- TODO settare che il codolo restituisce incompleta tranne quando è forzato
|
||||
if nIsApplicableCount > 0 then
|
||||
if dCompletionPercentage > 100 - 10 * GEO.EPS_SMALL then
|
||||
Strategy.Result.sStatus = 'Completed'
|
||||
|
||||
@@ -175,7 +175,7 @@ function BLADEKEEPWASTE.Make( Proc, Part, OptionalParameters)
|
||||
|
||||
-- calcolo parametri per la stima della velocità di asportazione
|
||||
-- TODO non è corretto: come si stima la velocità di asportazione con il codolo? è come se avesse rimosso tutto il volume feature nel tempo di percorrenza
|
||||
if Cutting1.bIsApplicable and Cutting2.bIsApplicable then
|
||||
if Cutting1.bIsApplicable or Cutting2.bIsApplicable then
|
||||
MRRParameters1 = {
|
||||
dStep = TOOLS[Cutting1.nToolIndex].dThickness,
|
||||
dSideStep = min( TOOLS[Cutting1.nToolIndex].dSideStep, dDepthToMachine),
|
||||
@@ -189,7 +189,7 @@ function BLADEKEEPWASTE.Make( Proc, Part, OptionalParameters)
|
||||
local dMRRBlade1 = MachiningLib.GetToolMRR( MRRParameters1)
|
||||
local dMRRBlade2 = MachiningLib.GetToolMRR( MRRParameters2)
|
||||
Result.dMRR = ( dMRRBlade1 + dMRRBlade2) / 2
|
||||
Result.dCompletionPercentage = Cutting2.dCompletionPercentage
|
||||
Result.dCompletionPercentage = 0.5 * Cutting1.dCompletionPercentage + 0.5 * Cutting2.dCompletionPercentage
|
||||
if Result.dCompletionPercentage > 100 - 10 * GEO.EPS_SMALL then
|
||||
Result.sStatus = 'Completed'
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user