From a0f4898de273b8cb0ecb8290b1439f63d22f2f60 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 4 Aug 2015 17:49:18 +0000 Subject: [PATCH] EgtInterface 1.6h1 : - aggiunta interfaccia per funzioni Nesting - aggiunta interfaccia per iterazione all'indietro su pezzi e layer. --- API_GdbModifyCurve.cpp | 14 +++++++------- API_GdbPartLayers.cpp | 28 ++++++++++++++++++++++++++++ API_Nesting.cpp | 34 ++++++++++++++++++++++++++++++++++ EgtInterface.rc | Bin 11718 -> 11718 bytes EgtInterface.vcxproj | 1 + EgtInterface.vcxproj.filters | 3 +++ 6 files changed, 73 insertions(+), 7 deletions(-) create mode 100644 API_Nesting.cpp diff --git a/API_GdbModifyCurve.cpp b/API_GdbModifyCurve.cpp index d0607c3..21a548c 100644 --- a/API_GdbModifyCurve.cpp +++ b/API_GdbModifyCurve.cpp @@ -35,6 +35,13 @@ __stdcall EgtOffsetCurve( int nId, double dDist, int nType) return ( ExeOffsetCurve( nId, dDist, nType) ? TRUE : FALSE) ; } +//------------------------------------------------------------------------------- +BOOL +__stdcall EgtApproxCurve( int nId, int nApprType, double dLinTol) +{ + return ( ExeApproxCurve( nId, nApprType, dLinTol) ? TRUE : FALSE) ; +} + //---------------------------------------------------------------------------- BOOL __stdcall EgtChangeClosedCurveStartPoint( int nId, const double ptP[3], int nRefType) @@ -178,10 +185,3 @@ __stdcall EgtExplodeCurveCompo( int nId, int* pnCount) { return ExeExplodeCurveCompo( nId, pnCount) ; } - -//------------------------------------------------------------------------------- -int -__stdcall EgtApproxCurve( int nId, int nApprType, double dLinTol) -{ - return ExeApproxCurve( nId, nApprType, dLinTol) ; -} diff --git a/API_GdbPartLayers.cpp b/API_GdbPartLayers.cpp index 4b16ddf..f156f88 100644 --- a/API_GdbPartLayers.cpp +++ b/API_GdbPartLayers.cpp @@ -82,6 +82,20 @@ __stdcall EgtGetNextPart( int nId, BOOL bOnlyVisible) return ExeGetNextPart( nId, ( bOnlyVisible != FALSE)) ; } +//------------------------------------------------------------------------------- +int +__stdcall EgtGetLastPart( BOOL bOnlyVisible) +{ + return ExeGetLastPart( ( bOnlyVisible != FALSE)) ; +} + +//------------------------------------------------------------------------------- +int +__stdcall EgtGetPrevPart( int nId, BOOL bOnlyVisible) +{ + return ExeGetPrevPart( nId, ( bOnlyVisible != FALSE)) ; +} + //------------------------------------------------------------------------------- int __stdcall EgtGetFirstLayer( int nPartId, BOOL bOnlyVisible) @@ -96,6 +110,20 @@ __stdcall EgtGetNextLayer( int nId, BOOL bOnlyVisible) return ExeGetNextLayer( nId, ( bOnlyVisible != FALSE)) ; } +//------------------------------------------------------------------------------- +int +__stdcall EgtGetLastLayer( int nPartId, BOOL bOnlyVisible) +{ + return ExeGetLastLayer( nPartId, ( bOnlyVisible != FALSE)) ; +} + +//------------------------------------------------------------------------------- +int +__stdcall EgtGetPrevLayer( int nId, BOOL bOnlyVisible) +{ + return ExeGetPrevLayer( nId, ( bOnlyVisible != FALSE)) ; +} + //------------------------------------------------------------------------------- BOOL __stdcall EgtEraseEmptyParts( void) diff --git a/API_Nesting.cpp b/API_Nesting.cpp new file mode 100644 index 0000000..816b014 --- /dev/null +++ b/API_Nesting.cpp @@ -0,0 +1,34 @@ +//---------------------------------------------------------------------------- +// EgalTech 2015-2015 +//---------------------------------------------------------------------------- +// File : API_Nesting.cpp Data : 31.07.15 Versione : 1.6g9 +// Contenuto : Funzioni nesting per API. +// +// +// +// Modifiche : 31.07.15 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +//--------------------------- Include ---------------------------------------- +#include "stdafx.h" +#include "API.h" +#include "/EgtDev/Include/EInAPI.h" +#include "/EgtDev/Include/EXeExecutor.h" + +using namespace std ; + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtCreateFlatParts( int nType) +{ + return ( ExeCreateFlatParts( nType) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtPackPart( int nId, double dXmax, double dOffs) +{ + return ( ExePackPart( nId, dXmax, dOffs) ? TRUE : FALSE) ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index 7526761a1aadbc4eb691262a9f59900145d26cc5..0ecc369fa12fc8b58e85467018554e3a727d3df1 100644 GIT binary patch delta 135 zcmX>WeJpyzH#Sxa1|0^&%^&$rGEF|hS;L&cU^w}qpzh`Zt{N7&oFg+#d~yMo#bg5> joym8&o@`zvtiudf1Ju7n5}`jp3aWeJpyzH#Syt1|0^A%^&$rGEF|hS;L&pU@`fjpzh`Zt{N7&oFg+#d~yMo#bg5> joym8&o@`zvtiudf1Ju7n5}`jp3a + diff --git a/EgtInterface.vcxproj.filters b/EgtInterface.vcxproj.filters index ece4db2..b3826c4 100644 --- a/EgtInterface.vcxproj.filters +++ b/EgtInterface.vcxproj.filters @@ -113,6 +113,9 @@ File di origine\API + + File di origine\API +