Skip to content
Snippets Groups Projects
Commit cb960bfa authored by vr-group's avatar vr-group
Browse files

VTK are you a mfing C library or a C++ library? Decide.

parent bc703f80
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ std::int32_t main(std::int32_t argc, char** argv) ...@@ -24,7 +24,7 @@ std::int32_t main(std::int32_t argc, char** argv)
reader ->SetFileName (filepath.c_str()); reader ->SetFileName (filepath.c_str());
reader ->UpdateInformation (); reader ->UpdateInformation ();
for (auto i = 0; i < reader->GetNumberOfCellArrays(); ++i) for (auto i = 0; i < reader->GetNumberOfCellArrays(); ++i)
reader->SetCellArrayStatus(reader->GetCellArrayName(i), reader->GetCellArrayName(i) == "Q" ? 1 : 0); reader ->SetCellArrayStatus (reader->GetCellArrayName(i), std::string(reader->GetCellArrayName(i)) == std::string("Q") ? 1 : 0);
reader ->Update (); reader ->Update ();
auto input_data = reader->GetOutput(); auto input_data = reader->GetOutput();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment