DataWall :
- corretta funzione GetFaceElevation - corretto calcolo step ed elevazione da usare in fresature SideGroove.
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user