[Tutor] Question concerning VPython
Kirby Urner
urnerk@qwest.net
Thu, 27 Jun 2002 16:24:49 -0700
>
>Should I conclude, that VPython is object-oriented only in a
>rather weak sense, in so far as it is impossible to
>subclass spheres, cylinders etc. (i. e. to derive new
>classes from these, which inherit their attributes ...)
>
I'm pretty sure this is right. VPython is mostly a C++ project
and wraps libraries which interface to OpenGL. Its primitives
are not subclassable.
>And what does <Primitive object ...> exactly mean?
>Is this like the built in classes before Python2.2?
>
>Shortly I'd like to know how to write VPython programs
>using as far as possible its OO capabilities.
>
>Thanks
>
>Gregor
I recommend you download and study Arthur Siegel's PyGeo,
a sophisticated projective geometry application built on VPython.
You could learn quite a bit from eyeballing his source code I
should think.
See: http://pw1.netcom.com/~ajs/
Kirby