From: Bruce S. <bas...@nc...> - 2010-10-08 04:40:06
|
Here's another possibility for the contents of a file in the visual folder, perhaps called libvisual as has been suggested: ---------------------------------------------------- from . import cvisual from .cvisual import (vector, mag, mag2, norm, cross, rotate, comp, proj, diff_angle, rate, waitclose) from .primitives import (arrow, cylinder, cone, sphere, box, ring, label, frame, pyramid, ellipsoid, curve, faces, convex, helix, points, text, distant_light, local_light) from . ui import display from . import crayola color = crayola from . import materials from . import site_settings ---------------------------------------------------- Then a program would look like this: import visual.libvisual as vis vis.display(width=600, height=600, background=vis.color.white) vis.box(color=vis.color.orange, material=vis.materials.wood) v = vis.vector(1,2,3) .... Does this meet the requirements? Bruce Sherwood |