EgtNesting 2.1l1 :
- aggiunto controllo flip, rotazione e priorità a pezzi.
This commit is contained in:
+3
-1
@@ -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 ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user