EgtNesting 2.4k1 :

- aggiunto controllo sul contorno di ogni pezzo (deve racchiudere qualcosa).
This commit is contained in:
DarioS
2022-11-25 07:47:48 +01:00
parent 51e74a7114
commit 139e1fa2d8
2 changed files with 7 additions and 0 deletions
+7
View File
@@ -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 ;