def DrawBox(vMin, vMax):
 glBegin(GL_LINE_LOOP)
 glVertex3f(vMin[0], vMin[1], vMin[2])
 glVertex3f(vMax[0], vMin[1], vMin[2])
 glVertex3f(vMax[0], vMax[1], vMin[2])
 glVertex3f(vMin[0], vMax[1], vMin[2])
 glEnd()
 glBegin(GL_LINE_LOOP)
 glVertex3f(vMin[0], vMin[1], vMax[2])
 glVertex3f(vMax[0], vMin[1], vMax[2])
 glVertex3f(vMax[0], vMax[1], vMax[2])
 glVertex3f(vMin[0], vMax[1], vMax[2])
 glEnd()
 glBegin(GL_LINES)
 glVertex3f(vMin[0], vMin[1], vMin[2])
 glVertex3f(vMin[0], vMin[1], vMax[2])
 glVertex3f(vMax[0], vMin[1], vMin[2])
 glVertex3f(vMax[0], vMin[1], vMax[2])
 glVertex3f(vMax[0], vMax[1], vMin[2])
 glVertex3f(vMax[0], vMax[1], vMax[2])
 glVertex3f(vMin[0], vMax[1], vMin[2])
 glVertex3f(vMin[0], vMax[1], vMax[2])
 glEnd()

def DrawBox ( vMin , vMax ) : glBegin ( GL_LINE_LOOP ) glVertex3f ( vMin [ 0 ] , vMin [ 1 ] , vMin [ 2 ] ) glVertex3f ( vMax [ 0 ] , vMin [ 1 ] , vMin [ 2 ] ) glVertex3f ( vMax [ 0 ] , vMax [ 1 ] , vMin [ 2 ] ) glVertex3f ( vMin [ 0 ] , vMax [ 1 ] , vMin [ 2 ] ) glEnd ( ) glBegin ( GL_LINE_LOOP ) glVertex3f ( vMin [ 0 ] , vMin [ 1 ] , vMax [ 2 ] ) glVertex3f ( vMax [ 0 ] , vMin [ 1 ] , vMax [ 2 ] ) glVertex3f ( vMax [ 0 ] , vMax [ 1 ] , vMax [ 2 ] ) glVertex3f ( vMin [ 0 ] , vMax [ 1 ] , vMax [ 2 ] ) glEnd ( ) glBegin ( GL_LINES ) glVertex3f ( vMin [ 0 ] , vMin [ 1 ] , vMin [ 2 ] ) glVertex3f ( vMin [ 0 ] , vMin [ 1 ] , vMax [ 2 ] ) glVertex3f ( vMax [ 0 ] , vMin [ 1 ] , vMin [ 2 ] ) glVertex3f ( vMax [ 0 ] , vMin [ 1 ] , vMax [ 2 ] ) glVertex3f ( vMax [ 0 ] , vMax [ 1 ] , vMin [ 2 ] ) glVertex3f ( vMax [ 0 ] , vMax [ 1 ] , vMax [ 2 ] ) glVertex3f ( vMin [ 0 ] , vMax [ 1 ] , vMin [ 2 ] ) glVertex3f ( vMin [ 0 ] , vMax [ 1 ] , vMax [ 2 ] ) glEnd ( )
draw wireframe box .