EgtInterface 2.1l2 :

- aggiunta interfaccia per EgtAutomaticPackParts.
This commit is contained in:
Dario Sassi
2019-12-04 19:47:33 +00:00
parent 850ee740f4
commit fdb492165e
2 changed files with 20 additions and 0 deletions
+20
View File
@@ -353,6 +353,26 @@ __stdcall EgtGetPartClusterCenterGlob( int nId[], int nCount, double ptCen[3])
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtAutomaticPackParts( int nId[], int nCount, BOOL bMinimizeOnXvsY, BOOL bReducedCut, int nMaxTime)
{
// verifico
if ( nId == nullptr || nCount <= 0)
return FALSE ;
// riempio il vettore
INTVECTOR vIds ;
vIds.resize( nCount) ;
for ( int i = 0 ; i < nCount ; ++ i)
vIds[i] = nId[i] ;
// eseguo
bool bOk = ExeAutomaticPackParts( vIds, ( bMinimizeOnXvsY != FALSE), ( bReducedCut != FALSE), nMaxTime) ;
// aggiorno il vettore
for ( int i = 0 ; i < nCount ; ++ i)
nId[i] = vIds[i] ;
return ( bOk ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtVerifyMachining( int nMchId, int* pnResult)