Vertex

16 views
Skip to first unread message

Anthony Smith

unread,
May 20, 2016, 10:31:06 PM5/20/16
to VPython-users
I am attempting to code something like the rug demo but I am finding I can not use quad or vertex. I have tried using the line:

from visual import vertex

in an attempt to figure out my problem. From this I get the response: 

Traceback (most recent call last):
  File "Untitled", line 1
    from visual import vertex
ImportError: cannot import name vertex

Just for reference I am running Windows 10, Python 2.7 (64bit), and VPython 6 (64bit).

Any help with be appreciated, Anthony

Bruce Sherwood

unread,
May 20, 2016, 11:42:53 PM5/20/16
to VPython-users
The rug program only runs in GlowScript VPython and Jupyter VPython. Classic VPython (VPython 6, the visual module) does not have vertex, triangle, or quad objects.

Reply all
Reply to author
Forward
0 new messages