BEZIER_SURFACE_DISPLAY
Display a Bezier Surface in MATLAB


BEZIER_SURFACE_DISPLAY is a MATLAB program 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 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!

Usage:

bezier_surface_display ( 'node_file', 'rectangle_file' )
where

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

BALL_AND_STICK_DISPLAY, a MATLAB program which demonstrates the creation of a 3D "ball and stick" image;

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

BEZIER_SURFACE, a MATLAB library which reads, writes, and manipulates Bezier surface files.

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

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

MESH_DISPLAY, a MATLAB program which reads data defining a polygonal mesh and displays it, with optional numbering.

MPAS_GRID_DISPLAY, a directory of MATLAB programs which can read an MPAS NETCDF grid file and display the primary polygonal mesh or the dual triangular mesh.

OBJ_DISPLAY, a MATLAB program which reads an OBJ file defining a 3D object and displays it within MATLAB.

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

QUAD_SURFACE_DISPLAY, a MATLAB program which reads files defining a 3D quadrilateral mesh surface and displays it within MATLAB.

STLA_DISPLAY, a MATLAB program which reads an ASCII STL file and displays it.

TET_MESH_DISPLAY, a MATLAB program which reads files defining a tet mesh and displays an image within MATLAB.

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

TRIANGULATION_DISPLAY_OPENGL, a C++ program which reads files defining a triangulation and displays an image using Open GL.

TRIANGULATION_ORDER1_DISPLAY, a MATLAB program which reads files defining a piecewise constant triangulation of data, and displays a corresponding 3D surface.

Reference:

  1. Edward Angel,
    Interactive Computer Graphics, a Top-Down Approach with OpenGL,
    Addison-Wesley, 2000,
    ISBN: 0-201-38597-X,
    LC: T385.A514.

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 04 August 2009.