The Design Mentor program demonstrates Bezier and B-spline curves and surfaces.
It was created by Dr. Shene and his students
in the MTU Computer Science department (www.cs.mtu.edu/~shene/NSF-2/index.html).
Use right-click and "Save Link As..." to download
the curve program:
- for
Sun: curve (You may
need to set the execute permissions after downloading.)
- for
Windows: curve.exe (You may need to also download Glut32.dll, Glu32.dll, Opengl32.dll, Gdi32.dll)
To run program:
- Start
program.
- In “Display
& Tracing Options” dialog box, set “Control Polygon” and “de Casteljau’s Alg” to be
displayed. Dismiss dialog.
- Select
Edit ->Create. Click on graphics
window to create Bezier curve control points.
- Move
slider on right up and down to observe influence of control points as
parameter changes.
- Select
“Curve: Bezier”-> “Change Current Curve to” -> “B-Spline”.
- Select
“Degree: ..” -> 2.
- Select
“Curve: B-Spline” -> “Show Curve Segment”
-> “With Clamped Knots”. Observe
how the curve is different from before?
- Move
slider on right up and down. Observe
that now only the three closest control points
effect the curve at a time.
- Experiment
by repeating steps 6-8 with different degree values.
Use right-click and "Save Link As..." to download
the surface program:
- for
Sun: surface (You
may need to set the execute permissions after downloading.)
- for
Windows: surface.exe (You may need to also download Glut32.dll, Glu32.dll, Opengl32.dll, Gdi32.dll)
To run program:
- Start
program.
- In “Tracing
Window”, set “Tracing Point” and “Calculation” to be on.
- In
yellow box of “Tracing Window”, drag purple circle around to set different
values of U and V. Observe how surface
points are obtained through a series of Bezier curve calculations. First one set of Bezier curves is
evaluated (red ones). Then the
resulting points from each of these is used to do another Bezier curve
evaluation (blue).