--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-30-ea23b8b79d3d> in <module>() 11 u=gaussian(x)*gaussian(y) 12 ---> 13 mesh=vpm.mesh(x, y, 2*u) C:\Users\myname\vpm.pyc in __init__(self, x, y, z, topcolor, botcolor) 92 other input: top and bottom surface colors """ 93 def __init__(self, x, y, z, topcolor=(1,0,0), botcolor=(0,1,1)): ---> 94 self.t = vp.faces(color=topcolor) # top, bot faces 95 self.b = vp.faces(color=botcolor) 96 self.move(x, y, z) # set initial position C:\Anaconda2\lib\site-packages\vpython\vpython.pyc in __init__(self, **args) 2250 class faces(object): 2251 def __init__(self, **args): -> 2252 raise NameError('faces is no longer supported; use vertex and triangle and quad, which will be available soon') 2253 2254 class label(standardAttributes): NameError: faces is no longer supported; use vertex and triangle and quad, which will be available soon
Is this an issue with vpython or am I trying to use the mesh function incorrectly.
Thanks.