DataBeam :
- aggiunta gestione rotazione 90deg anche sui profili.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- ProcessProfFront.lua by Egaltech s.r.l. 2020/04/20
|
||||
-- Gestione calcolo profilo caudato per Travi
|
||||
-- ProcessProfFront.lua by Egaltech s.r.l. 2020/05/22
|
||||
-- Gestione calcolo profilo frontale per Travi
|
||||
|
||||
-- Tabella per definizione modulo
|
||||
local ProcessProfFront = {}
|
||||
@@ -29,6 +29,30 @@ function ProcessProfFront.Identify( Proc)
|
||||
return (( Proc.Grp == 3 or Proc.Grp == 4) and Proc.Prc == 100)
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
-- Classificazione della feature
|
||||
function ProcessProfFront.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, vtN)
|
||||
local vtNP = Vector3d( vtN)
|
||||
|
||||
Reference in New Issue
Block a user