TestBoardOutlinesGraphicItems(): add missing case.
DRC_TEST_PROVIDER_MISC::testOutline(): use a smaller size to dectedt small items.
This commit is contained in:
parent
5d6ef69726
commit
a7d540ce94
|
@ -682,6 +682,9 @@ bool TestBoardOutlinesGraphicItems( BOARD* aBoard, int aMinDist,
|
|||
case SHAPE_T::ARC:
|
||||
break;
|
||||
|
||||
case SHAPE_T::POLY:
|
||||
break;
|
||||
|
||||
case SHAPE_T::BEZIER:
|
||||
break;
|
||||
|
||||
|
|
|
@ -97,11 +97,11 @@ void DRC_TEST_PROVIDER_MISC::testOutline()
|
|||
errorHandled = true;
|
||||
};
|
||||
|
||||
// Use the standard chaining epsilon here so that we report errors that might affect
|
||||
// other tools (such as 3D viewer).
|
||||
int chainingEpsilon = m_board->GetOutlinesChainingEpsilon();
|
||||
// Test for very small graphic items (a few nm size) that can create issues
|
||||
// when trying to build the board outlines, and they are not easy to locate onn screen.
|
||||
const int minSizeForValideGraphics = pcbIUScale.mmToIU( 0.001 );
|
||||
|
||||
if( !TestBoardOutlinesGraphicItems(m_board, chainingEpsilon, &errorHandler ) )
|
||||
if( !TestBoardOutlinesGraphicItems(m_board, minSizeForValideGraphics, &errorHandler ) )
|
||||
{
|
||||
if( errorHandled )
|
||||
{
|
||||
|
@ -122,6 +122,10 @@ void DRC_TEST_PROVIDER_MISC::testOutline()
|
|||
}
|
||||
|
||||
|
||||
// Use the standard chaining epsilon here so that we report errors that might affect
|
||||
// other tools (such as 3D viewer).
|
||||
int chainingEpsilon = m_board->GetOutlinesChainingEpsilon();
|
||||
|
||||
if( !BuildBoardPolygonOutlines( m_board, dummyOutline, m_board->GetDesignSettings().m_MaxError,
|
||||
chainingEpsilon, &errorHandler ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue