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
+3 -1
View File
@@ -894,7 +894,9 @@ function BeamLib.MakeOneFaceBySaw( nSurfId, nFacet, sCutting, dSawDiam, Par5, dV
local dLenMax = max( 0.5 * dSawDiam * 0.17365 + 1, 2 * dLenMin)
--if vtTg1 * vtTg2 < dCosMax or ( dDist1 < dLenMax and dDist1 > dLenMin) or ( dDist2 < dLenMax and dDist2 > dLenMin) then
if vtTg1 * vtTg2 < dCosMax then
if abs( vtTg1 * vtOrthO) < abs( vtTg2 * vtOrthO) then
local dOrtho1 = abs( vtTg1 * vtOrthO)
local dOrtho2 = abs( vtTg2 * vtOrthO)
if dOrtho1 < dOrtho2 or ( abs( dOrtho1 - dOrtho2) < 0.1 and dDist1 > 4 * dDist2) then
if dDist1 > dLenMin or dDist1 > 0.5 * dDist2 then
ptP2 = Point3d( ptPm)
dAllEnd = - dDist2 - 10 * GEO.EPS_SMALL