EgtNesting 2.1l1 :

- aggiunto controllo flip, rotazione e priorità a pezzi.
This commit is contained in:
Dario Sassi
2019-12-02 18:36:13 +00:00
parent 5e485d191b
commit 17c5d09647
3 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -103,7 +103,7 @@ AutoNester::AddSheet( int nSheetId, const PolyArc& Outline, int nPriority, int n
//----------------------------------------------------------------------------
bool
AutoNester::AddPart( int nPartId, const PolyArc& Outline, int nCount)
AutoNester::AddPart( int nPartId, const PolyArc& Outline, bool bCanFlip, bool bCanRotate, int nPriority, int nCount)
{
if ( m_pOrder == nullptr)
return false ;
@@ -124,6 +124,8 @@ AutoNester::AddPart( int nPartId, const PolyArc& Outline, int nCount)
if ( pPart == nullptr)
return false ;
CNS_SetPartUserString( pPart, ToString( nPartId).c_str()) ;
CNS_SetPartAuthorizations( pPart, ( bCanFlip ? 1 : 0), ( bCanRotate ? 1 : 0), 0) ;
CNS_SetPartPriority( pPart, nPriority) ;
return true ;
}