Commit 4b2036a4 authored by Scott Wittenburg's avatar Scott Wittenburg

Enable support for VTK_POLY_LINE in pdf backend device

parent 1f535c69
......@@ -1059,6 +1059,7 @@ void vtkPDFContextDevice2D::DrawPolyData(
vtkNew<vtkCellTypes> types;
polyData->GetCellTypes(types);
if (!types->IsType(VTK_LINE) &&
!types->IsType(VTK_POLY_LINE) &&
!types->IsType(VTK_TRIANGLE) &&
!types->IsType(VTK_QUAD) &&
!types->IsType(VTK_POLYGON))
......@@ -1101,6 +1102,7 @@ void vtkPDFContextDevice2D::DrawPolyData(
switch (cellType)
{
case VTK_LINE:
case VTK_POLY_LINE:
case VTK_TRIANGLE:
case VTK_QUAD:
case VTK_POLYGON:
......@@ -1142,7 +1144,7 @@ void vtkPDFContextDevice2D::DrawPolyData(
}
}
if (cellType == VTK_LINE)
if (cellType == VTK_LINE || cellType == VTK_POLY_LINE)
{
PolyLineToShading(verts.data(), numPoints, vertColors.data(), 4, radius,
shading);
......
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