DataBeam :

- migliorato calcolo tagli di lama su faccia con due lati da considerare
- migliorato calcolo sicurezza utensile di fianco su taglio longitudinale singolo.
This commit is contained in:
DarioS
2021-11-05 08:23:53 +01:00
parent 8967758382
commit b3109756e4
3 changed files with 24 additions and 9 deletions
+2 -2
View File
@@ -289,9 +289,9 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster
-- 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
if vtN[1]:getZ() > -10 * GEO.EPS_SMALL and vtN[2]:getZ() > -10 * GEO.EPS_SMALL then
nSide = 1
elseif vtN[1]:getZ() < -10 * GEO.EPS_SMALL and vtN[2]:getZ() < -10 * GEO.EPS_SMALL then
elseif vtN[1]:getZ() < 10 * GEO.EPS_SMALL and vtN[2]:getZ() < 10 * GEO.EPS_SMALL then
nSide = -1
end