Delaunau triangulation algorithm was bailing out if run on an emprty container.
This commit is contained in:
parent
6ad9d013e2
commit
84412ce135
|
@ -246,7 +246,7 @@ void RN_NET::compute()
|
|||
|
||||
return;
|
||||
}
|
||||
else if( boardNodes.size() == 1 ) // This case is even simpler
|
||||
else if( boardNodes.size() == 1 || boardNodes.empty() ) // This case is even simpler
|
||||
{
|
||||
m_rnEdges.reset( new std::vector<RN_EDGE_PTR>( 0 ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue