Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pyparticles/ogl/axis_ogl.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def draw_plane( self , plane="xy", color=( 0.7 , 0.7 , 0.7 , 0.3 ) , leng=None )
glBegin(GL_LINES)

for pts in t :
glVertex3fv( pts[0] )
glVertex3fv( pts[1] )
glVertex3fv( pts[0].view(type=np.ndarray) )
glVertex3fv( pts[1].view(type=np.ndarray) )

glEnd()

Expand Down Expand Up @@ -199,12 +199,12 @@ def draw_arrow( self , color , axis , leng=None ):
glBegin(GL_LINES)

for pts in t :
glVertex3fv( pts[0] )
glVertex3fv( pts[1] )
glVertex3fv( pts[0].view(type=np.ndarray) )
glVertex3fv( pts[1].view(type=np.ndarray) )


glEnd()





12 changes: 6 additions & 6 deletions pyparticles/ogl/draw_vector_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ def _draw_field( self , key ):

glColor4f( color[0] , color[1] , color[2] , color[3] )

glVertex3fv( pts[0] )
glVertex3fv( pts[1] )
glVertex3fv( pts[0].view(type=np.ndarray) )
glVertex3fv( pts[1].view(type=np.ndarray) )

glVertex3fv( pts[2] )
glVertex3fv( pts[3] )
glVertex3fv( pts[2].view(type=np.ndarray) )
glVertex3fv( pts[3].view(type=np.ndarray) )

glVertex3fv( pts[4] )
glVertex3fv( pts[5] )
glVertex3fv( pts[4].view(type=np.ndarray) )
glVertex3fv( pts[5].view(type=np.ndarray) )

glEnd()

Expand Down