DataBeam :

- modifiche a BatchProcess per gestire verifica collisioni in cieco
- copia TASKID dalle geometrie feature alle geometrie di lavorazione
- imposto non controllare separazione pezzi in svuotature di LapJoint
- migliorie varie.
This commit is contained in:
Dario Sassi
2019-07-22 08:04:47 +00:00
parent 8f475ad061
commit 35782ae142
10 changed files with 75 additions and 17 deletions
+22 -8
View File
@@ -1,4 +1,4 @@
-- ProcessFreeContour.lua by Egaltech s.r.l. 2019/06/29
-- ProcessFreeContour.lua by Egaltech s.r.l. 2019/07/19
-- Gestione calcolo profilo libero per Travi
-- Tabella per definizione modulo
@@ -121,14 +121,28 @@ local function MakeByMill( Proc, nPhase, nRawId, nPartId, dOvmHead)
EgtOutLog( string.format( 'CrvLen=%.1f StepNbr=%d StepLen=%.1f', dCrvLen, nStep, dStep), 3)
end
-- verifiche per affondamento ( possibili lavorazioni in doppio)
local bCross = false
if abs( vtExtr:getY()) > 0.707 then
if b3Aux:getDimY() > b3Raw:getDimY() - 1.0 then
bCross = true
dDepth = min( dDepth, b3Raw:getDimY())
end
elseif abs( vtExtr:getZ()) > 0.707 then
if b3Aux:getDimZ() > b3Raw:getDimZ() - 1.0 then
bCross = true
dDepth = min( dDepth, b3Raw:getDimZ())
end
end
local nDouble = 1
local bCanDouble = ( abs( vtExtr:getZ()) < 0.5 and abs( vtExtr:getX()) < 0.1 and b3Aux:getDimY() > b3Raw:getDimY() - 1.0)
if nStep > 1 then
-- devo lasciare un codolo
dDepth = dDepth - BD.DIM_STRIP
else
-- devo affondare un poco oltre
dDepth = dDepth + BD.CUT_EXTRA
local bCanDouble = abs( vtExtr:getY()) > 0.707 and bCross
if bCross then
if nStep > 1 then
-- devo lasciare un codolo
dDepth = dDepth - BD.DIM_STRIP
else
-- devo affondare un poco oltre
dDepth = dDepth + BD.CUT_EXTRA
end
end
if dDepth > dMaxDepth then
if bCanDouble then