From 4e98343a07becda666426d3ca0b25d432391def6 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 8 Feb 2016 10:50:28 +0000 Subject: [PATCH] EgtInterface 1.6n1 : - aggiornamento. --- API_Nesting.cpp | 15 ++++++++++++--- EgtInterface.rc | Bin 11742 -> 11726 bytes 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/API_Nesting.cpp b/API_Nesting.cpp index 29aa777..1d290cd 100644 --- a/API_Nesting.cpp +++ b/API_Nesting.cpp @@ -240,7 +240,7 @@ __stdcall EgtMoveToSnapPointOnCollision( int nId[], int nCount, BOOL bReducedCut if ( ! ExeMoveToSnapPointOnCollision( vIds, ( bReducedCut != FALSE), dMaxMove, dXmin, dYmin, dXmax, dYmax, bMoved)) return FALSE ; if ( pbMoved != nullptr) - *pbMoved = bMoved ; + *pbMoved = ( bMoved ? TRUE : FALSE) ; return TRUE ; } @@ -280,7 +280,16 @@ __stdcall EgtGetPartClusterCenterGlob( int nId[], int nCount, double ptCen[3]) //----------------------------------------------------------------------------- BOOL -__stdcall EgtVerifyMachining( int nMchId, bool bReduced, int nRawId) +__stdcall EgtVerifyMachining( int nMchId, int* pnResult) { - return ( ExeVerifyMachining( nMchId, bReduced, nRawId) ? TRUE : FALSE) ; + if ( pnResult == nullptr) + return FALSE ; + return ( ExeVerifyMachining( nMchId, *pnResult) ? TRUE : FALSE) ; } + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtVerifyCutAsSplitting( int nMchId) +{ + return ( ExeVerifyCutAsSplitting( nMchId) ? TRUE : FALSE) ; +} \ No newline at end of file diff --git a/EgtInterface.rc b/EgtInterface.rc index 2ad42767512cc77e4eaec86cd85edb614e92051d..d50abaa3a7ad8237c3f8378615757db87e27e661 100644 GIT binary patch delta 121 zcmcZ?eJ*;#4>nd41|0^&&Hve4nVIt#3@1AZrEXrw<;DURKgl$CgCfu53xYWy`OS_( kixF}+nI<2R1dBuUNilBTBCW%Ws<{HHv7B-95@jnc06`rk{Qv*} delta 137 zcmX>XeJ^^$4>ooq1|0@N27}EH#cnc9zQ&ouoWo!^`67qpW(TPZ#?42#b(oQqoMf83 qPp|^6BtWQ#1xePG87|`>H3eA)tdD2%Iz@!>0YV9ko2MvSaRC6Gr75QX