Adding some improvements and the movement of the vehicle

parent b2ef0c7a
......@@ -93,6 +93,8 @@ int main( int iNumInArgs, char* pcInArgs[] )
cout << " #### Running step " << std::setw( 8 ) << std::setfill( '0' ) << i << " / " << iNumSteps << " #### " << endl;
pVehicle->vPos = pVehicle->vPos + VistaVector3D( 0.01f, 0.0f, 0.0f ); // Move source ... adjust for requested speed @henry.
auto pPathEngine = make_shared<CombinedModel::CPathEngine>();
pPathEngine->Configure( bOnlyNeighbouredEdgeDiffraction, bDiffractionOnlyIntoShadowedEdges, bFilterNotVisiblePathsBetweenEdges, bFilterNotVisiblePointToEdge, bFilterNotVisiblePointToEdge, bFilterNotVisiblePaths, iNumIterations, fIntersectionTestResolution );
......@@ -107,13 +109,13 @@ int main( int iNumInArgs, char* pcInArgs[] )
cout << "Visible paths: " << to_string( oPathList.size() ) << endl;
std::stringstream ss;
ss << "UrbanTrajectory_pps_" << std::setfill( '0' ) << 8 << i << ".json";
ss << "UrbanTrajectory_pps_" << std::setw( 8 ) << std::setfill( '0' ) << 8 << i << ".json";
oPathList.Store( ss.str().c_str() );
cout << "Done in " << timeToString( sw.stop() ) << " seconds." << endl;
// Every now and then, export a visualization model
if( i == 1 || i == ( int ) iNumIterations / 2 || i == iNumSteps )
if( i == 0 || i == ( int ) iNumIterations / 2 || i == iNumSteps-1 )
{
SketchUp::CModel oGeoModel_Viz;
if( oGeoModel_Viz.Load( sInFile ) )
......@@ -151,8 +153,8 @@ int main( int iNumInArgs, char* pcInArgs[] )
}
std::stringstream ss_viz;
ss_viz << "UrbanTrajectory_pps_" << std::setfill( '0' ) << 8 << i << "_viz.skp";
oGeoModel_Viz.Store( ss_viz.str().c_str() );
ss_viz << "UrbanTrajectory_pps_" << std::setw( 8 ) << std::setfill( '0' ) << 8 << i << "_viz.skp";
//oGeoModel_Viz.Store( ss_viz.str().c_str() );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment