DataBeam :

- correzioni per tagli singoli e doppi di testa o coda che danno interferenza con asse Z della testa.
This commit is contained in:
DarioS
2021-11-15 15:59:47 +01:00
parent 0d285d54d3
commit 0326c83d3a
2 changed files with 14 additions and 2 deletions
+13 -1
View File
@@ -35,7 +35,19 @@ function ProcessDoubleCut.Classify( Proc, b3Raw)
-- verifico se convesso
local bAdj, _, _, dAng = EgtSurfTmFacetsContact( Proc.Id, 0, 1, GDB_ID.ROOT)
local bConvex = ( not bAdj or ( dAng > 0))
if bConvex then return true, false end
if bConvex then
-- recupero i dati di ogni singola faccia
for i = 1, 2 do
local nFac = i - 1
local vtN = EgtSurfTmFacetNormVersor( Proc.Id, nFac, GDB_ID.ROOT)
if ( vtN:getZ() <= - 0.5 and abs( vtN:getY()) > 0.1) or ( vtN:getZ() <= - 0.174 and abs( vtN:getY()) > 0.866) then
local _, DimH, DimV = BL.GetFaceHvRefDim( Proc.Id, nFac)
if DimH > BD.MAX_DIM_DICE then
return true, true
end
end
end
end
-- verifico le normali delle facce per tagli da sotto
local dNzLimDwnUp = BL.GetNzLimDownUp( b3Raw)
for i = 1, 2 do