diff --git a/API_GdbModifyCurve.cpp b/API_GdbModifyCurve.cpp index 732df58..3c688d7 100644 --- a/API_GdbModifyCurve.cpp +++ b/API_GdbModifyCurve.cpp @@ -192,3 +192,10 @@ __stdcall EgtExplodeCurveCompo( int nId, int* pnCount) { return ExeExplodeCurveCompo( nId, pnCount) ; } + +//------------------------------------------------------------------------------- +BOOL +__stdcall EgtMergeCurvesInCurveCompo( int nId, double dLinTol) +{ + return ( ExeMergeCurvesInCurveCompo( nId, dLinTol) ? TRUE : FALSE) ; +} diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 8964625..f59bf7d 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -679,9 +679,27 @@ __stdcall EgtSimStop( void) return ( ExeSimStop() ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +// Generation //----------------------------------------------------------------------------- BOOL __stdcall EgtGenerate( const wchar_t* wsCncFile, const wchar_t* wsInfo) { return ( ExeGenerate( wstrztoA( wsCncFile), wstrztoA( wsInfo)) ? TRUE : FALSE) ; } + +//----------------------------------------------------------------------------- +// Machine Calc +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetCalcTipFromPositions( double dX, double dY, double dZ, double dAngA, double dAngB, + BOOL bBottom, double ptTip[3]) +{ + Point3d ptTmp ; + if ( ! ExeGetCalcTipFromPositions( dX, dY, dZ, dAngA, dAngB, ( bBottom != FALSE), ptTmp)) + return FALSE ; + // ritorno i dati + if ( ptTip != nullptr) + VEC_FROM_3D( ptTip, ptTmp) ; + return TRUE ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index a8b50bb..6222adc 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ