Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VTK
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Christian Butz
VTK
Commits
4b2036a4
Commit
4b2036a4
authored
Oct 03, 2018
by
Scott Wittenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable support for VTK_POLY_LINE in pdf backend device
parent
1f535c69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
IO/ExportPDF/vtkPDFContextDevice2D.cxx
IO/ExportPDF/vtkPDFContextDevice2D.cxx
+3
-1
No files found.
IO/ExportPDF/vtkPDFContextDevice2D.cxx
View file @
4b2036a4
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment