GENR8 Examples

In this section a few commands that can be used to create interesting surfaces are presented. Hopefully, this can be of some help when learning to use the system (unfortunately, it is not very user-friendly). The easiest way to use these commands is to copy the text to the script editor and hit Enter (you must use the Enter key on the numerical keyboard and not the ordinary one, if you are using a laptop without a numerical keyboard, try using ALT-Enter or CTRL-Enter).

genr8 -kc
Comment: The Koch-curve (also known as the snow flake), fractals are just subset of what is possible with genr8.
genr8 -fp -sl 8 -n 5 -ba 70 -t 4 -r 0 0 3 -rn 0.1 -s 1.1
Comment: The surface behaves more like a membrane since the perimeter vertices are not allowed to move.
polyCube -w 3 -h 4 -d 3;
genr8 -t 3 -rn 0.1 -n 4;
Comment: Remember that you must select the cube before the run. If you run the commands concurrently, the cube is automatically selected.
polyCube -w 3 -h 4 -d 3;
genr8 -t 3 -n 5 -a 0 0 4 -g z -0.5;
Comment: Do not forget to select the cube! The center of the surface is pulled by the attractor until it hits the ceiling of the cube. The other parts are dragged down by gravity.
polySphere -r 5;
genr8 -t 4 -n 5 -ba 90 -g z -1 -sp 0 0 7 -sl 3 -s 1.3;
Comment: This an example where it works fine with a convex wall.
genr8 -t 4 -n 6 -ds -s 1.3 -r 0 0 -3 -r 0 4 0 -ba 90 -r 1 -3 -4 -r 2 2 5 -r -3 -2 1;
Comment: The final shape is far from the original square.
genr8 -t 3 -n 5 -g z -1 -r 0 0 -3;
Comment: The gravity is balanced by the repellor, producing a nice arc.
polyCube -w 3 -h 4 -d 3;
genr8 -t 4 -n 5 -r 3 3 3 -co;
Comment: Note how the parts of the surface that hit the walls of the cube stop moving because of the cut-off wall behavior.
Back