EgtNesting :

- a Compute aggiunto flag bMinimizeOnXvsY.
This commit is contained in:
Dario Sassi
2019-12-04 19:42:35 +00:00
parent adf61b1ea1
commit a60d7b0a7c
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -198,7 +198,7 @@ AutoNester::SetInterpartGap( double dGap)
//----------------------------------------------------------------------------
bool
AutoNester::Compute( int nMaxTime)
AutoNester::Compute( bool bMinimizeOnXvsY, int nMaxTime)
{
if ( m_pOrder == nullptr)
return false ;
@@ -210,6 +210,8 @@ AutoNester::Compute( int nMaxTime)
for ( auto Iter = m_IdSheetPtr.begin() ; Iter != m_IdSheetPtr.end() ; ++ Iter)
CNS_SetDefectGap( Iter->second, m_dInterpartGap) ;
}
// per evitare pezzi posti inutilmente di sghembo su ultimo pannello
CNS_SetObjective( m_pOrder, ( bMinimizeOnXvsY ? CNS_IntelligentMinimizeX : CNS_IntelligentMinimizeY)) ;
// recupero i codici di sblocco del nesting
string sKeyId, sKeySign ;
SplitFirst( GetENsKey2(), "-", sKeyId, sKeySign) ;