From 73d0639ea914b97c52a45af815e4e8add7b074ff Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sat, 6 Jun 2015 17:55:44 +0000 Subject: [PATCH] EgtInterface 1.6f1 : - aggiornata interfaccia. --- API_GeoSnap.cpp | 24 ++++++++++++++++++++++-- EgtInterface.rc | Bin 11718 -> 11718 bytes 2 files changed, 22 insertions(+), 2 deletions(-) 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 d19bf1b4189cafab64070e12419ebdaf1f108d21..04313c3643e43b2ed139bd8400fccd95b4063fdd 100644 GIT binary patch delta 135 zcmX>WeJpyzH#Sx?1|0^&%^&$rGEF|hS;L&hU^w}qpzh`Zt{N7&oFg+#d~yMo#bg5> joym8&o@`zvtiudf1Ju7n5}`jp3aWeJpyzH#SyN1|0^I%^&$rGEF|hS;L&lU^4lkpzh`Zt{N7&oFg+#d~yMo#bg5> joym8&o@`zvtiudf1Ju7n5}`jp3a