PNS: Consider arcs when searching for lines between joints

This commit is contained in:
Jon Evans 2020-12-31 13:04:10 -05:00
parent 73248ab219
commit 9a0f685a75
1 changed files with 3 additions and 3 deletions

View File

@ -1002,10 +1002,10 @@ int NODE::FindLinesBetweenJoints( const JOINT& aA, const JOINT& aB, std::vector<
{
for( ITEM* item : aA.LinkList() )
{
if( item->Kind() == ITEM::SEGMENT_T )
if( item->Kind() == ITEM::SEGMENT_T || item->Kind() == ITEM::ARC_T )
{
SEGMENT* seg = static_cast<SEGMENT*>( item );
LINE line = AssembleLine( seg );
LINKED_ITEM* li = static_cast<LINKED_ITEM*>( item );
LINE line = AssembleLine( li );
if( !line.Layers().Overlaps( aB.Layers() ) )
continue;