DataBeam :- correzioni e migliorie varie.

This commit is contained in:
Dario Sassi
2019-10-07 06:47:08 +00:00
parent 2981dcb50d
commit ed02b71319
12 changed files with 296 additions and 100 deletions
+11 -2
View File
@@ -18,11 +18,20 @@ local ML = require( 'MachiningLib')
---------------------------------------------------------------------
local function VerifyOrientation( Proc, vtN, b3Raw)
-- se trave molto bassa
if b3Raw:getDimZ() <= 120 then
-- se tenone praticamente in asse, accetto fino a -45 deg
if abs( vtN:getY()) < 0.04 then
return ( vtN:getZ() >= -0.7072)
-- altrimenti accetto fino a -30deg
else
return ( vtN:getZ() >= -0.51)
end
-- se trave bassa
if b3Raw:getDimZ() <= 200 then
elseif b3Raw:getDimZ() <= 200 then
-- se tenone praticamente in asse, accetto fino a -30 deg
if abs( vtN:getY()) < 0.04 then
return ( vtN:getZ() >= -0.5)
return ( vtN:getZ() >= -0.51)
-- altrimenti accetto fino a -20deg
else
return ( vtN:getZ() >= -0.343)