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 2ad4276..d50abaa 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ