Fixed build on xenial, VTK<=7.

This commit is contained in:
matlabbe
2023-12-19 19:39:50 -08:00
parent e619c57759
commit ee09e92496
2 changed files with 7 additions and 17 deletions

View File

@@ -1679,7 +1679,12 @@ bool CloudViewer::addElevationMap(
color[j] = 255 * dcolor[j] / 1.0;
}
#if VTK_MAJOR_VERSION > 7
colors->InsertNextTypedTuple(color);
#else
colors->InsertNextTupleValue(color);
#endif
}
output->GetPointData()->AddArray(colors);