{
typedef typename Superclass::TSeedsInterface::TSeeds::iterator _TIt;
+ this->Superclass::_AfterGenerateData( );
+
TMST* mst = this->GetMinimumSpanningTree( );
mst->ClearSeeds( );
mst->SetCollisions( this->m_Collisions );
for( _TIt sIt = this->BeginSeeds( ); sIt != this->EndSeeds( ); ++sIt )
mst->AddSeed( sIt->Vertex );
-
- this->Superclass::_AfterGenerateData( );
}
// -------------------------------------------------------------------------
{
// First path: from start vertex to first collision
vertices = this->GetPath(
- a, this->m_Collisions[ fpath[ 0 ] ][ fpath[ 1 ] ].first
+ a, this->m_Collisions[ fpath[ 1 ] ][ fpath[ 0 ] ].first
);
// Intermediary paths
// Final path: from last collision to end point
TVertices lpath =
this->GetPath(
- this->m_Collisions[ fpath[ N - 1 ] ][ fpath[ N - 2 ] ].first, b
+ this->m_Collisions[ fpath[ N - 2 ] ][ fpath[ N - 1 ] ].first, b
);
for( long id = 0; id < lpath.size( ); ++id )
vertices.push_back( lpath[ id ] );