DataBeam :
- in taglio lama per tenoni da sotto solo se non eccede MaxMat in altezza - migliorato controllo DtMortise in coda - in lavorazione BlckHausHalfLap si favorisce fresa BH di fianco se possibile.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- ProcessDtMortise.lua by Egaltech s.r.l. 2020/05/25
|
||||
-- ProcessDtMortise.lua by Egaltech s.r.l. 2020/06/20
|
||||
-- Gestione calcolo mortase a coda di rondice per Travi
|
||||
|
||||
-- Tabella per definizione modulo
|
||||
@@ -28,11 +28,19 @@ end
|
||||
---------------------------------------------------------------------
|
||||
-- Verifica se feature di coda
|
||||
function ProcessDtMortise.IsTailFeature( Proc, b3Raw)
|
||||
-- verifico se è in coda
|
||||
-- la mortasa di fronte è già stata classificata nel chiamante
|
||||
-- controllo la mortasa standard
|
||||
if Proc.Box:getMin():getX() > b3Raw:getMin():getX() + BD.MAX_DIST_HTFEA then
|
||||
return false
|
||||
-- recupero la curva di profilo
|
||||
local AuxId = EgtGetInfo( Proc.Id, 'AUXID', 'i')
|
||||
if not AuxId then return false end
|
||||
AuxId = AuxId + Proc.Id
|
||||
local vtStart = EgtSV( AuxId, GDB_ID.ROOT)
|
||||
local vtEnd = EgtEV( AuxId, GDB_ID.ROOT)
|
||||
local vtDir = -vtStart + vtEnd ; vtDir:normalize()
|
||||
return ( vtDir:getX() < -0.5)
|
||||
end
|
||||
return true
|
||||
return false
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user