Attached is yet another version of tube.py. It is much faster in resetting
some attribute such as inner or outer radius, or axis length. The speed is
obtained by just scaling x or y or z appropriately in the faces pos list,
rather than recalculating from scratch all the face coordinates. When you
run the program, click the window to see how fast the two objects change
appearance.
Bruce Sherwood
|