DataBeam: - primo implemento modifiche per forature in testa o coda per considerare materiale eventualmente già rimosso da lavorazioni precedenti

This commit is contained in:
luca.mazzoleni
2022-06-24 18:14:59 +02:00
parent abd4e6da69
commit 04aed7f175
2 changed files with 64 additions and 4 deletions
+11
View File
@@ -394,6 +394,17 @@ function ProcessDrill.Make( Proc, nPhase, nRawId, nPartId)
EgtSetMachiningParam( MCH_MP.SCC, nSCC)
-- aggiusto l'affondamento
local sMyWarn
-- test
if Proc.MachineAfterHeadCutId then
local ptCen = EgtCP( AuxId, GDB_RT.GLOB)
local dMoveDistance, ptPointOnSurface = EgtPointSurfTmDist( ptCen, Proc.MachineAfterHeadCutId, GDB_RT.GLOB)
local vtMove = -vtExtr * dMoveDistance
EgtMove( AuxId, vtMove, GDB_RT.GLOB)
EgtModifyCurveThickness( Proc.MachineAfterHeadCutId, dLen - dMoveDistance)
end
-- fine test
if dDepth > dMaxDepth + 10 * GEO.EPS_SMALL then
sMyWarn = 'Warning in drill : depth (' .. EgtNumToString( dDepth, 1) .. ') bigger than max tool depth (' .. EgtNumToString( dMaxDepth, 1) .. ')'
dDepth = dMaxDepth