Commit 1b3f9375 authored by Arne Graf's avatar Arne Graf

vtk outputfiles nPoints fixed

parent 7e820aef
......@@ -404,6 +404,7 @@ void DirectionLocalFloorfield::Init(Building* buildingArg, double stepsize,
newfield->setSpeedMode(FF_HOMO_SPEED);
}
newfield->addAllTargetsParallel();
//newfield->writeFF("ffrouterOfRoom" + std::to_string(roomPair.first) + ".vtk", newfield->getKnownDoorUIDs());
}
end = std::chrono::system_clock::now();
std::chrono::duration<double> elapsed_seconds = end-start;
......
......@@ -1276,7 +1276,7 @@ void UnivFFviaFM::writeFF(const std::string& filename, std::vector<int> targetID
" 1" << std::endl;
file << "ORIGIN " << _grid->GetxMin() << " " << _grid->GetyMin() << " 0" << std::endl;
file << "SPACING " << std::to_string(_grid->Gethx()) << " " << std::to_string(_grid->Gethy()) << " 1" << std::endl;
file << "POINT_DATA " << std::to_string(numTotal) << std::endl;
file << "POINT_DATA " << std::to_string(_grid->GetnPoints()) << std::endl;
file << "SCALARS GCode float 1" << std::endl;
file << "LOOKUP_TABLE default" << std::endl;
if (!_gridCode) {
......
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