Homework 05

Kristy VanHornweder

tarball for wave.05

Phytoplankton Morphing-Surface Using an Elliptic Torus

The torus represents the phytoplankton and the cube represents the ocean.

Parametric Equations:

      x = (i+j*cos(v))*cos(u);
      y = (i+j*cos(v))*sin(u);
      z = k*sin(v);

      default values: i = 0.5, k = 0.5, j depends on simulation time
      i is spread, j is thickness, k is height

Command line arguments:

The three parameters spread, thickness, and height can be specified on the command line. If no specifications are given, default values are used. If two parameters are specified and not the third, the third parameter will depend on the simulation time. The range of values for all three parameters is from 0-1. The parameters are explained as follows:

spread (i) - Controls the spread of the surface. A smaller value will cause more variation between how wide and how narrow the surface gets.

thickness (j) - Controls the thickness of the outer edge, in other words, how big of a hole is in the center. A smaller value will cause there to be a thinner edge and a bigger hole in the middle, so the surface will appear more hollow.

height (k) - Controls the height of the surface. A larger value will cause the surface to become taller.

Screen shots:


spread = 0.2, thickness = 0.7,
height dependent on simulation time


spread = 0.8, height = 0.2,
thickness dependent on simulation time


thickness = 0.3, height = 0.7,
spread dependent on simulation time

Animation:


spread = 0.8, height = 0.2, thickness is dependent on simulation time

Summary of articles

Link to Homework 05