From: symion <sy...@pr...> - 2009-01-09 17:06:52
|
Here is a small program that wraps a wire-frame around a cube with a single data set, that can be used by either points, curve or convex, each cube can be divided into a square grid. The demo displays 8 cubes that can act independently or as a group and has heaps of control, IDLE displays key control table. Color, Number of squares on a side, Thickness of wire-frame, Rotation, Visibility and Axis can all be randomly chosen. And it is Fast. From a single cube with 6 sides to a grid wrapped cube with 52 x 52 x 6 sides = 16244 squares maximum. A problem exists when the number of squares equals 9,12,21 or 46 through 49 or exceeds 52! I don't know what causes this! I have checked the data set but have not resolved it yet! Source code is here: gridwire.py <http://home.primusonline.com.au/knoware/python/gridwire.py> Symion |