DataBeam :

- aggiunta gestione rotazione 90deg anche sui profili.
This commit is contained in:
Dario Sassi
2020-05-22 14:58:12 +00:00
parent e95990cb23
commit da7aa76d5c
6 changed files with 144 additions and 9 deletions
+25 -1
View File
@@ -1,4 +1,4 @@
-- ProcessProfCamb.lua by Egaltech s.r.l. 2020/04/20
-- ProcessProfCamb.lua by Egaltech s.r.l. 2020/05/22
-- Gestione calcolo profilo caudato per Travi
-- Tabella per definizione modulo
@@ -28,6 +28,30 @@ function ProcessProfCamb.Identify( Proc)
return (( Proc.Grp == 3 or Proc.Grp == 4) and Proc.Prc == 103)
end
---------------------------------------------------------------------
-- Classificazione della feature
function ProcessProfCamb.Classify( Proc, b3Raw)
-- recupero la curva associata
local AuxId = EgtGetInfo( Proc.Id, 'AUXID', 'i')
AuxId = EgtIf( AuxId, AuxId + Proc.Id, GDB_ID.NULL)
local vtN = EgtCurveExtrusion( AuxId, GDB_RT.GLOB)
if not vtN then return false end
-- se profilo orizzontale
if abs( vtN:getZ()) < 0.5 then
return true, false, false
-- altrimenti è profilo verticale che interessa tutta la sezione
else
-- recupero la massima capacità di lavoro dell'utensile da utilizzare
local sMilling, dMaxDepth = ML.FindMilling( 'Prof')
if not sMilling then dMaxDepth = 0 end
if Proc.Box:getDimZ() > dMaxDepth and BD.ROT90 then
return true, false, true
else
return true, false, false
end
end
end
---------------------------------------------------------------------
local function GetSawCutData( AuxId, vtNF)
-- comincio con la normale a 45deg