parameters: (extents)
return_statement: return vertices,indices
docstring: Computes a box mesh
docstring_summary: Computes a box mesh
docstring_tokens: Computes a box mesh
function: def ComputeBoxMesh(extents):
      """Computes a box mesh"""
      indices = numpy.reshape([0, 1, 2, 1, 2, 3, 4, 5, 6, 5, 6, 7, 0, 1, 4, 1, 4, 5, 2, 3, 6, 3, 6, 7, 0, 2, 4, 2, 4, 6, 1, 3, 5,3, 5, 7],(12,3))
      vertices = numpy.array(((extents[0],extents[1],extents[2]),
                              (extents[0],extents[1],-extents[2]),
                              (extents[0],-extents[1],extents[2]),
                              (extents[0],-extents[1],-extents[2]),
                              (-extents[0],extents[1],extents[2]),
                              (-extents[0],extents[1],-extents[2]),
                              (-extents[0],-extents[1],extents[2]),
                              (-extents[0],-extents[1],-extents[2])))
      return vertices,indices
function_tokens: def ComputeBoxMesh ( extents ) : indices = numpy . reshape ( [ 0 , 1 , 2 , 1 , 2 , 3 , 4 , 5 , 6 , 5 , 6 , 7 , 0 , 1 , 4 , 1 , 4 , 5 , 2 , 3 , 6 , 3 , 6 , 7 , 0 , 2 , 4 , 2 , 4 , 6 , 1 , 3 , 5 , 3 , 5 , 7 ] , ( 12 , 3 ) ) vertices = numpy . array ( ( ( extents [ 0 ] , extents [ 1 ] , extents [ 2 ] ) , ( extents [ 0 ] , extents [ 1 ] , - extents [ 2 ] ) , ( extents [ 0 ] , - extents [ 1 ] , extents [ 2 ] ) , ( extents [ 0 ] , - extents [ 1 ] , - extents [ 2 ] ) , ( - extents [ 0 ] , extents [ 1 ] , extents [ 2 ] ) , ( - extents [ 0 ] , extents [ 1 ] , - extents [ 2 ] ) , ( - extents [ 0 ] , - extents [ 1 ] , extents [ 2 ] ) , ( - extents [ 0 ] , - extents [ 1 ] , - extents [ 2 ] ) ) ) return vertices , indices