Fix some bugs in RoadGraph::generateMesh()