EgtInterface 1.6h1 :

- aggiunta interfaccia per funzioni Nesting
- aggiunta interfaccia per iterazione all'indietro su pezzi e layer.
This commit is contained in:
Dario Sassi
2015-08-04 17:49:18 +00:00
parent a8c0bd30e8
commit a0f4898de2
6 changed files with 73 additions and 7 deletions
+7 -7
View File
@@ -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) ;
}
+28
View File
@@ -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)
+34
View File
@@ -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) ;
}
BIN
View File
Binary file not shown.
+1
View File
@@ -229,6 +229,7 @@ copy $(TargetPath) \EgtProg\Dll64</Command>
<ClCompile Include="API_Lua.cpp" />
<ClCompile Include="API_MachMgr.cpp" />
<ClCompile Include="API_Messages.cpp" />
<ClCompile Include="API_Nesting.cpp" />
<ClCompile Include="API_Scene.cpp" />
<ClCompile Include="API_TscExec.cpp" />
<ClCompile Include="API_UiUnits.cpp" />
+3
View File
@@ -113,6 +113,9 @@
<ClCompile Include="API_UiUnits.cpp">
<Filter>File di origine\API</Filter>
</ClCompile>
<ClCompile Include="API_Nesting.cpp">
<Filter>File di origine\API</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="EgtInterface.rc">