router: replace large stack variables with std::array
This commit is contained in:
parent
f7f5e67f56
commit
61e75a838b
|
@ -914,9 +914,9 @@ const LINE NODE::AssembleLine( LINKED_ITEM* aSeg, int* aOriginSegmentIndex,
|
||||||
{
|
{
|
||||||
const int MaxVerts = 1024 * 16;
|
const int MaxVerts = 1024 * 16;
|
||||||
|
|
||||||
VECTOR2I corners[MaxVerts + 1];
|
std::array<VECTOR2I, MaxVerts + 1> corners;
|
||||||
LINKED_ITEM* segs[MaxVerts + 1];
|
std::array<LINKED_ITEM*, MaxVerts + 1> segs;
|
||||||
bool arcReversed[MaxVerts + 1];
|
std::array<bool, MaxVerts + 1> arcReversed;
|
||||||
|
|
||||||
LINE pl;
|
LINE pl;
|
||||||
bool guardHit = false;
|
bool guardHit = false;
|
||||||
|
@ -928,12 +928,12 @@ const LINE NODE::AssembleLine( LINKED_ITEM* aSeg, int* aOriginSegmentIndex,
|
||||||
pl.SetNet( aSeg->Net() );
|
pl.SetNet( aSeg->Net() );
|
||||||
pl.SetOwner( this );
|
pl.SetOwner( this );
|
||||||
|
|
||||||
followLine( aSeg, false, i_start, MaxVerts, corners, segs, arcReversed,
|
followLine( aSeg, false, i_start, MaxVerts, corners.data(), segs.data(), arcReversed.data(),
|
||||||
guardHit, aStopAtLockedJoints );
|
guardHit, aStopAtLockedJoints );
|
||||||
|
|
||||||
if( !guardHit )
|
if( !guardHit )
|
||||||
{
|
{
|
||||||
followLine( aSeg, true, i_end, MaxVerts, corners, segs, arcReversed, guardHit,
|
followLine( aSeg, true, i_end, MaxVerts, corners.data(), segs.data(), arcReversed.data(), guardHit,
|
||||||
aStopAtLockedJoints );
|
aStopAtLockedJoints );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue