diff --git a/API_GeoSnap.cpp b/API_GeoSnap.cpp index 910ef3e..4b750dd 100644 --- a/API_GeoSnap.cpp +++ b/API_GeoSnap.cpp @@ -192,6 +192,13 @@ __stdcall EgtFrame( int nId, int nRefId, double ptOrig[3], double vtX[3], double return TRUE ; } +//---------------------------------------------------------------------------- +BOOL +__stdcall EgtCurveDomain( int nId, double* pdStart, double* pdEnd) +{ + return ( ExeCurveDomain( nId, pdStart, pdEnd) ? TRUE : FALSE) ; +} + //---------------------------------------------------------------------------- BOOL __stdcall EgtCurveLength( int nId, double* pdLen) @@ -206,6 +213,19 @@ __stdcall EgtCurveLengthAtPoint( int nId, const double ptOn[3], double dExtend, return ( ExeCurveLengthAtPoint( nId, ptOn, dExtend, pdLen) ? TRUE : FALSE) ; } +//---------------------------------------------------------------------------- +BOOL +__stdcall EgtCurveNearestExtremityToPoint( int nId, const double ptP[3], BOOL* pbStart) +{ + if ( pbStart == nullptr) + return FALSE ; + bool bStart ; + if ( ! ExeCurveNearestExtremityToPoint( nId, ptP, bStart)) + return FALSE ; + *pbStart = ( bStart ? TRUE : FALSE) ; + return TRUE ; +} + //---------------------------------------------------------------------------- BOOL __stdcall EgtCurveExtrusion( int nId, int nRefId, double vtExtr[3]) @@ -228,9 +248,9 @@ __stdcall EgtCurveThickness( int nId, double* pdThick) //---------------------------------------------------------------------------- BOOL -__stdcall EgtGetMinDistPointCurve( const double ptP[3], int nId, double* pdDist) +__stdcall EgtGetMinDistPointCurve( const double ptP[3], int nId, double* pdDist, double* pdU) { - return ( ExeGetMinDistPointCurve( ptP, nId, pdDist) ? TRUE : FALSE) ; + return ( ExeGetMinDistPointCurve( ptP, nId, pdDist, pdU) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- diff --git a/EgtInterface.rc b/EgtInterface.rc index d19bf1b..04313c3 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ