Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
11f225fd
Commit
11f225fd
authored
Oct 02, 2001
by
Charles Law
Browse files
Corrected render ordering of polys and strips.
parent
b82b2332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkOpenGLPolyDataMapper.cxx
View file @
11f225fd
...
...
@@ -2506,8 +2506,8 @@ void vtkOpenGLPolyDataMapper::Draw(vtkRenderer *aren, vtkActor *act)
prims
[
0
]
=
input
->
GetVerts
();
prims
[
1
]
=
input
->
GetLines
();
prims
[
2
]
=
input
->
Get
Strip
s
();
prims
[
3
]
=
input
->
Get
Poly
s
();
prims
[
2
]
=
input
->
Get
Poly
s
();
prims
[
3
]
=
input
->
Get
Strip
s
();
t
=
input
->
GetPointData
()
->
GetTCoords
();
if
(
t
)
...
...
@@ -2772,12 +2772,17 @@ void vtkOpenGLPolyDataMapper::Draw(vtkRenderer *aren, vtkActor *act)
glDisable
(
GL_LIGHTING
);
}
// do polys
aPrim
=
prims
[
2
];
aGlFunction
=
glFunction
[
3
];
draw3
(
aPrim
,
aGlFunction
,
cellNum
,
p
,
n
,
c
,
t
,
ren
,
noAbort
);
// do tstrips
if
(
zResolve
)
{
glDepthRange
(
2
*
zRes
,
1.
);
}
aPrim
=
prims
[
2
];
aPrim
=
prims
[
3
];
aGlFunction
=
glFunction
[
2
];
draw2
(
aPrim
,
aGlFunction
,
cellNum
,
p
,
n
,
c
,
t
,
ren
,
noAbort
);
if
(
rep
==
VTK_WIREFRAME
)
...
...
@@ -2785,11 +2790,6 @@ void vtkOpenGLPolyDataMapper::Draw(vtkRenderer *aren, vtkActor *act)
draw2W
(
aPrim
,
aGlFunction
,
cellNum
,
p
,
n
,
c
,
t
,
ren
,
noAbort
);
}
// do polys
aPrim
=
prims
[
3
];
aGlFunction
=
glFunction
[
3
];
draw3
(
aPrim
,
aGlFunction
,
cellNum
,
p
,
n
,
c
,
t
,
ren
,
noAbort
);
// enable lighting again if necessary
if
(
!
n
&&
rep
==
VTK_POINTS
)
{
...
...
Write
Preview
Supports
Markdown
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