bzamecnik / gpg

Geometry for computer graphics
6 stars 1 forks source link

Questions regarding the unit visual #1

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi Zámečník,

Sorry to send you a question in the issues section. I'm trying to find codes to get the rotation minimizing frames to work with my 3d space curves as a demonstration to my students. I run into your code here and it looks promising. However, I wonder if you may tell me where is this visual library? For example, from visual import vector

Is visual the vpython library? Thank you.

bzamecnik commented 3 years ago

Hi @Thompson104, yeah it was https://vpython.org/. Check its documentation for installing it. If you manage to run it I'll be wondering how it works for your lesson.

xiang-jun commented 2 years ago

Hi Zámečník,

I'm interest in using your code as well. However, I'm having trouble to run the code with Python 3.8.3. I installed vpython 7.6.2, and replaced visual with vpython as below (following https://stackoverflow.com/questions/28592211/importerror-no-module-named-visual) and in the script:

import time, math, vpython
from vpython import vector

Now, I get the following error message:

    vpython.scene = vpython.display(width=800, height=800)
AttributeError: module 'vpython' has no attribute 'display'

Any suggestions to get you code running in the updated Python 3 and vpython 7?

Thanks,