|
|
@@ -10,6 +10,7 @@ local BL = require( 'BeamLib')
|
|
|
|
local Fbs = require( 'FacesBySaw')
|
|
|
|
local Fbs = require( 'FacesBySaw')
|
|
|
|
local Cut = require( 'ProcessCut')
|
|
|
|
local Cut = require( 'ProcessCut')
|
|
|
|
local DC = require( 'DiceCut')
|
|
|
|
local DC = require( 'DiceCut')
|
|
|
|
|
|
|
|
local FreeContour = require( 'ProcessFreeContour')
|
|
|
|
|
|
|
|
|
|
|
|
EgtOutLog( ' ProcessRidgeLap started', 1)
|
|
|
|
EgtOutLog( ' ProcessRidgeLap started', 1)
|
|
|
|
|
|
|
|
|
|
|
@@ -26,8 +27,10 @@ end
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
-- Classificazione della feature
|
|
|
|
-- Classificazione della feature
|
|
|
|
function ProcessRidgeLap.Classify( Proc, b3Raw)
|
|
|
|
function ProcessRidgeLap.Classify( Proc, b3Raw)
|
|
|
|
-- se PF con testa da sotto, ammessa qualunque orientazione
|
|
|
|
-- se forzato utilizzo fresa non ruoto la trave
|
|
|
|
if BD.C_SIMM and BD.DOWN_HEAD then
|
|
|
|
local bForceSideMill = ( EgtGetInfo( Proc.Id, 'Q04', 'd') or 0) > 0
|
|
|
|
|
|
|
|
-- se PF con testa da sotto oppure forzato utilizzo fresa, ammessa qualunque orientazione
|
|
|
|
|
|
|
|
if ( BD.C_SIMM and BD.DOWN_HEAD) or bForceSideMill then
|
|
|
|
return true, false
|
|
|
|
return true, false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
-- Se più corta del limite si può fare anche da sotto
|
|
|
|
-- Se più corta del limite si può fare anche da sotto
|
|
|
@@ -137,6 +140,14 @@ function ProcessRidgeLap.Make( Proc, nPhase, nRawId, nPartId, dOvmHead)
|
|
|
|
if not bOk then return bOk, sErr end
|
|
|
|
if not bOk then return bOk, sErr end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
-- se forzato utilizzo fresa richiamo la freecontour
|
|
|
|
|
|
|
|
local bForceSideMill = EgtGetInfo( Proc.Id, 'Q04', 'd') == 1 or
|
|
|
|
|
|
|
|
( EgtGetInfo( Proc.Id, 'Q04', 'd') == 2 and abs( vtN[vFaceOrd[3]]:getY()) < 0.1) or
|
|
|
|
|
|
|
|
( EgtGetInfo( Proc.Id, 'Q04', 'd') == 3 and abs( vtN[vFaceOrd[3]]:getY()) < 0.1 and vtN[vFaceOrd[3]]:getZ() < 0.1)
|
|
|
|
|
|
|
|
if bForceSideMill then
|
|
|
|
|
|
|
|
bOk, sErr = FreeContour.Make( Proc, nPhase, nRawId, nPartId, dOvmHead)
|
|
|
|
|
|
|
|
if not bOk then return bOk, sErr end
|
|
|
|
|
|
|
|
else
|
|
|
|
-- recupero gruppo per geometria addizionale
|
|
|
|
-- recupero gruppo per geometria addizionale
|
|
|
|
local nAddGrpId = BL.GetAddGroup( nPartId)
|
|
|
|
local nAddGrpId = BL.GetAddGroup( nPartId)
|
|
|
|
if not nAddGrpId then
|
|
|
|
if not nAddGrpId then
|
|
|
@@ -192,6 +203,7 @@ function ProcessRidgeLap.Make( Proc, nPhase, nRawId, nPartId, dOvmHead)
|
|
|
|
if not bOk then return bOk, sErr end
|
|
|
|
if not bOk then return bOk, sErr end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
-- aggiornamento ingombro di testa o coda
|
|
|
|
-- aggiornamento ingombro di testa o coda
|
|
|
|
if Proc.Head then
|
|
|
|
if Proc.Head then
|
|
|
|
local dHCI = 0
|
|
|
|
local dHCI = 0
|
|
|
|