DataBeam :

- aggiunta gestione di SteoJoint e StepJointNotch
- modifiche varie.
This commit is contained in:
Dario Sassi
2019-09-25 18:33:48 +00:00
parent c8a4a2bb6e
commit e42f60cebe
13 changed files with 452 additions and 58 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
-- ProcessTenon.lua by Egaltech s.r.l. 2019/07/16
-- ProcessTenon.lua by Egaltech s.r.l. 2019/09/25
-- Gestione calcolo tenone per Travi
-- Tabella per definizione modulo
@@ -30,8 +30,8 @@ function ProcessTenon.Classify( Proc)
if not AuxId then return false end
AuxId = AuxId + Proc.Id
local vtExtr = EgtCurveExtrusion( AuxId, GDB_RT.GLOB)
-- verifico se il tenone è lavorabile solo da sotto
local bDown = ( vtExtr:getZ() < - 0.26)
-- verifico se il tenone è lavorabile solo da sotto (-20 deg)
local bDown = ( vtExtr:getZ() < - 0.35)
return true, bDown
end
@@ -60,8 +60,8 @@ function ProcessTenon.Make( Proc, nPhase, nRawId, nPartId, dOvmHead)
local vtExtr = EgtCurveExtrusion( AuxId, GDB_RT.GLOB)
local ptBC = EgtGP( AuxId, GDB_RT.GLOB)
local bClosed = EgtCurveIsClosed( AuxId)
-- verifico che il tenone non sia orientato verso il basso (-15 deg)
if vtExtr:getZ() < - 0.26 then
-- verifico che il tenone non sia orientato verso il basso (-20 deg)
if vtExtr:getZ() < - 0.35 then
local sErr = 'Error on process ' .. tostring( Proc.Id) .. ' Tenon from bottom impossible'
EgtOutLog( sErr)
return false, sErr