EgtInterface 2.1l2 :
- aggiunta interfaccia per EgtAutomaticPackParts.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user