Splines in Computer Graphics

Fall 1997

Student: Anna Kagan
Instructor: Dr. Valerie A. Miller


Single spline segment

APPLET

Please note the following:

Back to the top


Multi-segment splines

BEZIER SPLINE - may (but doesn't have to) be extended to 4 segments

B-SPLINE - may (but doesn't have to) be extended to 20 points

I fixed some bugs found in the single-segment applet. Now you can set points very close to each other and even on the top of each other. When one point is on the top of another, the attempt to move this "two-in-one" point will result in moving the "oldest" point, based on the sequence in which the points were added to the applet.

Additional features:

Back to the top


4x4 Bezier 3D sample

APPLET

Please move only INTERIOR points.
Do NOT move any points on the grid border.

Back to the top


10x10 Bezier 3D

APPLET

I did not implement 3D B-spline: there are no points that 'belong' to the grid, so moving any of the points brings everything out of control.

Again, please don't move points which are on the grid's border.

Back to the top


Experimenting with colors: 4x4 3D sample

APPLET

The color is now changing depending on the distance from the grid plane. The original grid is blue; the color becomes lighter when moving farther from the grid.

The smoothness of color change depends on your video adapter.

Back to the top


2D & 3D coloring

AREA SAMPLE
In this applet you can only move two control points. Only the area ABOVE the axis AND underneath the curve is colored.

SURFACE SAMPLE
There is ONLY ONE point you can move - the one which is already above the surface when the applet starts.

POLYGON MESH SAMPLE
This is, what I, probably, had to start from. The only problem is that the polygons are NOT flat. Again, there is just one point for you to move.

Back to the top


Cylinder

NON-COLORED

COLORED

Notice that all non-visible parts of the frame are white, while visible parts are blue.

Although you can move control points (red) in both applets, I do NOT recommend to do this in COLORED applet since it takes quite long time to recolor.

Back to the top


Last update: Nov.4, 1998
anna_mcp@msn.com