EgtNesting 2.4k1 :
- aggiunto controllo sul contorno di ogni pezzo (deve racchiudere qualcosa).
This commit is contained in:
@@ -265,6 +265,13 @@ AutoNester::AddPart( int nPartId, const PolyArc& Outline, bool bCanFlip, bool bC
|
||||
// aggiungo contorno
|
||||
vector<CNS_Element> vElem ;
|
||||
GetCNSPath( Outline, 0, 0, vElem) ;
|
||||
if ( vElem.size() <= 1)
|
||||
return false ;
|
||||
else if ( vElem.size() == 2) {
|
||||
if ( abs( vElem[0].left_deflection) < 10 * EPS_SMALL &&
|
||||
abs( vElem[1].left_deflection) < 10 * EPS_SMALL)
|
||||
return false ;
|
||||
}
|
||||
CNS_PartPtr pPart = CNS_AddPart( m_pOrder, nCount, int( vElem.size()), vElem.data()) ;
|
||||
if ( pPart == nullptr)
|
||||
return false ;
|
||||
|
||||
Reference in New Issue
Block a user