DataBeam :

- aggiunto comando ShowSolid
- aggiunte tagli antischeggia a LapJoint a U di traverso
- piccole migliorie.
This commit is contained in:
Dario Sassi
2019-11-25 08:11:32 +00:00
parent 8ce7008a76
commit 6436826c86
4 changed files with 46 additions and 27 deletions
+3 -9
View File
@@ -1,4 +1,4 @@
-- ProcessLongDoubleCut.lua by Egaltech s.r.l. 2019/09/04
-- ProcessLongDoubleCut.lua by Egaltech s.r.l. 2019/11/24
-- Gestione calcolo doppio taglio longitudinale per Travi
-- Tabella per definizione modulo
@@ -53,12 +53,6 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId)
end
end
local dLen = EgtGetBBoxGlob( Proc.Id, GDB_BB.STANDARD):getDimX()
-- verifico che il doppio taglio longitudinale non sia orientato verso il basso
--if vtN[1]:getZ() < - 0.707 or vtN[2]:getZ() < - 0.707 then
-- local sErr = 'Error on process ' .. tostring( Proc.Id) .. ' Longitudinal Double Cut from bottom impossible'
-- EgtOutLog( sErr)
-- return false, sErr
--end
-- verifico posizione (+1=sopra, -1=sotto, 0=sui lati)
local nSide = 0
if vtN[1]:getZ() > -10 * GEO.EPS_SMALL and vtN[2]:getZ() > -10 * GEO.EPS_SMALL then
@@ -74,7 +68,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId)
if bInt then
bConvex = ( dAng >= 0)
bOrtho = ( abs( dAng + 90) < 1)
ptM = ( ptP1 + ptP2) / 2
ptM = ( ptC[1] + ptC[2]) / 2
else
bConvex = true
bOrtho = false
@@ -240,7 +234,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId)
local dSal = EgtIf( nPos == 1, 0, - dEndLen - ( nPos - 2) * dC)
local dEal = EgtIf( nPos == nC, 0, - dEndLen - ( nC - nPos - 1) * dC)
-- Posizione braccio portatesta
local nSCC = EgtIf( ( j == 1 or j == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM)
local nSCC = MCH_SCC.ADIR_XP
-- inserisco le parti di lavorazione
nM = nM + 1
local sNameF = 'L2C_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id)) .. '_' .. tostring( nM)