Feature/DoubleSideChainSawLapJoint

modificati commenti
This commit is contained in:
luca.mazzoleni
2022-08-12 09:27:06 +02:00
parent f3a72a7683
commit b197c96a34
+3
View File
@@ -4372,6 +4372,7 @@ local function MakeTunnelByChainSaw( Proc, sSawing, nLundIdFace, vtOrtho, dWorkD
EgtSetMachiningParam( MCH_MP.OFFSR, dOffs)
EgtSetMachiningParam( MCH_MP.FACEUSE, sFaceUse)
EgtSetMachiningParam( MCH_MP.DEPTH, dWorkDepth)
-- modifico la distanza di attacco per considerare anche tunnel inclinati
EgtSetMachiningParam( MCH_MP.STARTPOS, 50)
-- eseguo
if not ML.ApplyMachining( true, false) then
@@ -4535,6 +4536,7 @@ local function MakeMoreFaces( Proc, nPhase, nRawId, nPartId, dOvmHead, bSinglePa
end
end
local dWorkDepth = dDepth
-- cerco di estendere il taglio considerando la parte arrotondata della lama + 1
if dMaxMat > dDepth + dSawCornerRad + 1 then
dWorkDepth = dDepth + dSawCornerRad + 1
-- se massimo affondamento utensile inferiore alla profondità da lavorare, setto la profondità di lavoro e emetto warning
@@ -4543,6 +4545,7 @@ local function MakeMoreFaces( Proc, nPhase, nRawId, nPartId, dOvmHead, bSinglePa
sWarn = 'Warning : elevation bigger than max tool depth'
EgtOutLog( sWarn)
end
-- lavoro da un lato
local bOk, sErr = MakeTunnelByChainSaw( Proc, sSawing, nLundIdFace, vtOrtho, dWorkDepth, dMaxMat, nStep, dStep, sFaceUse)
if not bOk then return false, sErr end
-- se è da lavorare anche dall'altro lato