diff --git a/API_GdbCreateCurve.cpp b/API_GdbCreateCurve.cpp index 6066a28..f98b5ff 100644 --- a/API_GdbCreateCurve.cpp +++ b/API_GdbCreateCurve.cpp @@ -243,6 +243,28 @@ __stdcall EgtCreateCurveCompoByReorder( int nParentId, int nNumId, const int nId return ExeCreateCurveCompoByReorder( nParentId, vIds, ptNear, ( bErase != FALSE), nRefType, nullptr) ; } +//------------------------------------------------------------------------------- +int +__stdcall EgtCreateCurveCompoByInterpolation( int nParentId, int nP, const double ptPs[], int nType, int nRefType) +{ + PolyLine PL ; + for ( int i = 0 ; i < nP ; ++i) { + PL.AddUPoint( 0, Point3d( ptPs[3*i], ptPs[3*i+1], ptPs[3*i+2])) ; + } + return ExeCreateCurveCompoByInterpolation( nParentId, PL, nType, nRefType) ; +} + +//------------------------------------------------------------------------------- +int +__stdcall EgtCreateCurveCompoByApproximation( int nParentId, int nP, const double ptPs[], int nType, double dLinTol, int nRefType) +{ + PolyLine PL ; + for ( int i = 0 ; i < nP ; ++i) { + PL.AddUPoint( 0, Point3d( ptPs[3*i], ptPs[3*i+1], ptPs[3*i+2])) ; + } + return ExeCreateCurveCompoByApproximation( nParentId, PL, nType, dLinTol, nRefType) ; +} + //------------------------------------------------------------------------------- int __stdcall EgtCreateCurveCompoFromPoints( int nParentId, int nP, const double ptPs[], int nRefType) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index f234b2a..191e1e2 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -1418,6 +1418,13 @@ __stdcall EgtSetAllOperationsStatus( BOOL bShow) return ( ExeSetAllOperationsStatus( bShow != FALSE) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtAdjustOperationPhase( int nId) +{ + return ( ExeAdjustOperationPhase( nId) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtChangeOperationPhase( int nId, int nNewPhase) diff --git a/EgtInterface.rc b/EgtInterface.rc index e2a84e1..5f434c6 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ