Skip to content

Commit 1daf520

Browse files
committed
CylindricalEquidistantAxes::togl use GL_LINE_STRIP
1 parent 3e50f8c commit 1daf520

File tree

1 file changed

+1
-4
lines changed
  • lib/PDL/Graphics/TriD

1 file changed

+1
-4
lines changed

lib/PDL/Graphics/TriD/GL.pm

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,13 @@ sub PDL::Graphics::TriD::CylindricalEquidistantAxes::togl {
8686
glColor3d(1,1,1);
8787
for(my $j=0;$j<$tverts->getdim(2)-1;$j++){
8888
my $j1=$j+1;
89-
glBegin(GL_LINES);
89+
glBegin(GL_LINE_STRIP);
9090
for(my $i=0;$i<$tverts->getdim(1)-1;$i++){
9191
my $i1=$i+1;
9292
glVertex2f($tverts->at(0,$i,$j),$tverts->at(1,$i,$j));
9393
glVertex2f($tverts->at(0,$i1,$j),$tverts->at(1,$i1,$j));
94-
glVertex2f($tverts->at(0,$i1,$j),$tverts->at(1,$i1,$j));
95-
glVertex2f($tverts->at(0,$i1,$j1),$tverts->at(1,$i1,$j1));
9694
glVertex2f($tverts->at(0,$i1,$j1),$tverts->at(1,$i1,$j1));
9795
glVertex2f($tverts->at(0,$i,$j1),$tverts->at(1,$i,$j1));
98-
glVertex2f($tverts->at(0,$i,$j1),$tverts->at(1,$i,$j1));
9996
glVertex2f($tverts->at(0,$i,$j),$tverts->at(1,$i,$j));
10097
}
10198
glEnd();

0 commit comments

Comments
 (0)