|
NAME4va, ctorus, cutctorus, 4vdmake - 4D object tumbler for X-Windows and object generation programsSYNOPSIS4va [{ -xy -xz -yz -xw -yw -zw } <angle> ] [-np] [-ns] [-nt] [-cw] [ -zd <dist> ] [ -wd <dist> ] [ -lc <color> ] [ -bc <color> ] [ -lw <width> ] [ -d <display> ] [ -s <scale> ] [ -h | -? ] <object-file>ctorus <x-increments> <y-increments>
4vdmake <x-grid-size> <y-grid-size> DESCRIPTION4va is a fourth dimensional visualization program for X-Windows. It takes as input a file describing an object in up to 4 dimensions and tumbles it in a window according to rotation values given on the command line.Options
Ctorus, cutctorus, and 4vdmake optionsThese three programs are object file generators for 4va. Ctorus generates a Clifford Torus with the densities named. For example, ctorus 20 20 will generate a Clifford Torus file with 20 increments around each of the two sets of circles defining the torus (the x-y set and the z-w set).Cutctorus is the same as ctorus, except that all of the circles in one direction are invisible, making the torus easier to see. 4vdmake is a "customizable" object generation program that produces objects in three dimensions. The program generates a grid of points and lines on the x and y plane and applies to them a function (defined in the code) for the z value of each coordinate. This is a quick hack to let 4va display 3D functions. It can easily be modified to generate 4D functions. 4vdmake fits the grid (with the density on the x and y axes given on the command line) into a -1 to 1 square on the x and y axes. Object filesObject files (usually with the extension .4vd) have the following format:
For example, a simple object file for a single line might look like
If the number-of-points and number-of-lines do not match the number of points and lines in their sections, 4va will read the incorrect amount of data from the object file and will get confused. As you can see, each point specifies the x, y, z, and w coordinates as floating-point numbers. If you're only creating a 3D object, for example, you can set all the w values to 0.0. Each line specifies the points between which the line extends. In the above example, we have one line between point 0 and point 1 (notice that numbering starts with 0). NOTES4va allocates memory for objects dynamically. If 4va runs out of memory it will exit with a return code of -1 and print a "malloc" error message.4va does not check that the object file that it's reading is well-behaved. If your object file is corrupt, 4va may hang. 4va has worked on every system I've tried it on; it's basic enough that it should port to your machine. If you have problems, let me know. AUTHORMatt Welsh (welsh@odin.ncssm.edu). Please send me any questions, bugs, or suggestions.
Visit the GSP FreeBSD Man Page Interface. |