BEZIER_SURFACE_DISPLAY
Display a Bezier Surface in MATLAB


BEZIER_SURFACE_DISPLAY is an executable program constructed of MATLAB routines, which gets the names of the node and rectangle files defining a Bezier surface, reads the information from the files, and displays the surface on the screen.

BEZIER_SURFACE_DISPLAY is a "work in progress". I have managed to read read the data in and display a crude image, in which each Bezier patch is represented by a flat rectangle. Obviously, I need to take the next step, which is to be able to sample the bicubic function and display a finer mesh of rectangles, in order to see the teapot in its glory!

Related Data and Programs:

BEZIER_SURFACE is a data directory which contains examples of Bezier surface files.

BEZIER_SURFACE is a library of routines for reading, writing, and manipulating Bezier surface files. It is available in a FORTRAN90 version and a MATLAB version.

FEM_BASIS_T3_DISPLAY is an executable MATLAB program which displays a basis function associated with a linear triangle ("T3") mesh.

FEM_BASIS_T6_DISPLAY is an executable MATLAB program which reads a quadratic triangle mesh and displays any associated basis function.

POLYGONAL_SURFACE_DISPLAY is an executable MATLAB program which reads two files defining a polygonal surface and displays it within MATLAB.

STLA_DISPLAY is an executable MATLAB program which reads an ASCII STL file and displays it.

TET_MESH_DISPLAY_MATLAB is an executable MATLAB program which reads files defining a tet mesh and displays an image within MATLAB.

TRI_MESH_DISPLAY is a MATLAB program which reads data defining a triangular mesh of a 3D surface and displays it.

TRIANGULATION_DISPLAY_OPEN_GL is an executable C++ program which reads files defining a triangulation and displays an image using Open GL.

Usage:

bezier_surface_display ( 'node_file', 'rectangle_file' )
reads the information in the Bezier node and rectangle files and displays it on the screen.

Reference:

  1. Edward Angel,
    Interactive Computer Graphics, a Top-Down Approach with OpenGL,
    Addison-Wesley, 2000.

Source Code:

Examples and Tests:

TEAPOT is the standard 3D example surface, with 306 nodes and 32 rectangles.

You can go up one level to the MATLAB source codes.


Last revised on 12 June 2006.