diff --git a/EGkOffsetCurve.h b/EGkOffsetCurve.h new file mode 100644 index 0000000..4ad9d72 --- /dev/null +++ b/EGkOffsetCurve.h @@ -0,0 +1,37 @@ +//---------------------------------------------------------------------------- +// EgalTech 2015-2015 +//---------------------------------------------------------------------------- +// File : EGkOffsetCurve.h Data : 23.09.15 Versione : 1.6i8 +// Contenuto : Dichiarazione classe per offset di ICurve. +// +// +// Modifiche : 23.09.15 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +#pragma once + +#include "/EgtDev/Include/EGkCurve.h" + +//----------------------- Macro per import/export ---------------------------- +#undef EGK_EXPORT +#if defined( I_AM_EGK) // da definirsi solo nella DLL + #define EGK_EXPORT __declspec( dllexport) +#else + #define EGK_EXPORT __declspec( dllimport) +#endif + +//---------------------------------------------------------------------------- +class OffsetCurve +{ + public : + EGK_EXPORT ~OffsetCurve( void) ; + + public : + EGK_EXPORT bool Make( const ICurve* pCrv, double dDist, int nType) ; + EGK_EXPORT ICurve* GetCurve( void) ; + + private : + ICURVEPLIST m_CrvLst ; +} ; \ No newline at end of file diff --git a/EInAPI.h b/EInAPI.h index a27990d..fb5217c 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -340,6 +340,7 @@ EIN_EXPORT int __stdcall EgtSplitText( int nId, int* pnCount) ; // GeomDb Curve Modify EIN_EXPORT BOOL __stdcall EgtInvertCurve( int nId) ; EIN_EXPORT BOOL __stdcall EgtOffsetCurve( int nId, double dDist, int nType) ; +EIN_EXPORT int __stdcall EgtOffsetCurveAdv( int nId, double dDist, int nType, int* pnCount) ; EIN_EXPORT BOOL __stdcall EgtApproxCurve( int nId, int nApprType, double dLinTol) ; EIN_EXPORT BOOL __stdcall EgtChangeClosedCurveStartPoint( int nId, const double ptP[3], int nRefType) ; EIN_EXPORT BOOL __stdcall EgtModifyCurveStartPoint( int nId, const double ptP[3], int nRefType) ; diff --git a/EXeExecutor.h b/EXeExecutor.h index f616452..1f8ae85 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -341,6 +341,7 @@ EXE_EXPORT int ExeSplitText( int nId, int* pnCount) ; // GeomDb Curve Modify EXE_EXPORT bool ExeInvertCurve( const INTVECTOR& vIds) ; EXE_EXPORT bool ExeOffsetCurve( int nId, double dDist, int nType) ; +EXE_EXPORT int ExeOffsetCurveAdv( int nId, double dDist, int nType, int* pnCount) ; EXE_EXPORT bool ExeApproxCurve( int nId, int nApprType, double dLinTol) ; EXE_EXPORT bool ExeProjectCurveOnPlane( int nId, const Point3d& ptOn, const Vector3d& vtN, int nRefType) ; EXE_EXPORT bool ExeChangeClosedCurveStartPoint( int nId, const Point3d& ptP, int nRefType) ;