mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Fixed build on xenial, VTK<=7.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user