Following are explanations of each of the five M-files that make up the ObjectBuilder, along with links to the source code.
ObjectBuilder.m is the M-file called to get the program running. In addition to initializing all of the attributes of the object (such as view angle, resolution, etc.), it sets up the three viewing windows.

MakeSurface.m does the brunt of the work. It takes two vectors which encode the figure of rotation and two vectors which encode the path of rotation, and uses these to calculate the surface created. It then uses surfl() to plot the surface.

Plot2D.m is used to read in and plot the 2-dimensional figure of rotation, as well as the 2-dimensional path of rotation. These shapes can be entered either by typing in two parametric equations, or by clicking a series of points, to which a spline is then fit. The M-file then returns two vectors which encode the 2-dimensional shape.

ResetSpline.m is called when the user clicks on the "Reset Spline" button in either of the two 2-dimensional shape windows. It simply clears the two parametric equations and then calls Plot2D to let the user enter points.

MySpline.m takes two vectors containing the coordinates of a set points and fits a spline of a given resolution to them, returning the coordinates of the spline in two vectors.