DataWall :

- corretta funzione GetFaceElevation
- corretto calcolo step ed elevazione da usare in fresature SideGroove.
This commit is contained in:
Dario Sassi
2020-11-18 18:36:06 +00:00
parent 86a4374767
commit 2d1c4968da
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -347,9 +347,9 @@ local function MakeSideGrooveByMill( Proc, nFacet, nRawId, b3Raw)
if dStep < GEO.EPS_SMALL then dStep = dMaxMat end
local nStep = ceil( ( dThick - dMaxMat) / dStep)
dStep = ( dThick - dMaxMat) / nStep
local dMaxElev = ( nStep + 1) * dStep
local dMaxElev = ( nStep + 1) * dStep - GEO.EPS_SMALL
EgtSetMachiningParam( MCH_MP.STEP, dStep)
EgtSetMachiningParam( MCH_MP.USERNOTES, 'MaxElev=' .. EgtNumToString( dMaxElev, 1) .. ';')
EgtSetMachiningParam( MCH_MP.USERNOTES, 'MaxElev=' .. EgtNumToString( dMaxElev, 3) .. ';')
-- eseguo
if not EgtApplyMachining( true, false) then
local _, sErr = EgtGetLastMachMgrError()
@@ -576,7 +576,7 @@ local function MakeMoreFaces( Proc, nRawId, b3Raw)
-- se di fianco
if Proc.Fct >= 3 and vtN:getZ() < WD.NZ_MINA then
-- fresatura
if dV > 30 then
if dElev < 200 then
return MakeSideGrooveByMill( Proc, nFacInd, nRawId, b3Raw)
-- altrimenti sega a catena
else
+1 -1
View File
@@ -75,7 +75,7 @@ function WallLib.GetFaceElevation( nSurfId, nFac, nRawId)
if not ptC or not vtN then return 0 end
local frOCS = Frame3d( ptC, vtN) ;
local b3Box = EgtGetBBoxRef( nSurfId, GDB_BB.STANDARD, frOCS)
local dElev = b3Box:getDimZ()
local dElev = b3Box:getMax():getZ()
if nPartId then
local _, dCenElev = WallLib.GetPointDirDepth( nRawId, ptC, vtN)
if dCenElev and dCenElev > dElev then