POLYGONAL_SURFACE_DISPLAY
Display a Polygonal Surface in MATLAB
POLYGONAL_SURFACE_DISPLAY is an executable MATLAB program
which gets the names of the node and
face files defining a polygonal surface, reads the information
from the files, and displays the surface on the screen.
Related Data and Programs:
BEZIER_SURFACE_DISPLAY
is a MATLAB program which reads two
files defining a Bezier surface and displays it.
FEM_BASIS_T3_DISPLAY
is a MATLAB program which displays a
basis function associated with a linear triangle ("T3") mesh.
FEM_BASIS_T6_DISPLAY
is a MATLAB program which reads a quadratic
triangle mesh and displays any associated basis function.
POLYGONAL_SURFACE
is a data directory which
contains examples of polygonal surface files.
STLA_DISPLAY
is a MATLAB program which reads an ASCII STL
file and displays it.
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:
-
polygonal_surface_display ( 'node_file',
'face_file' )
-
reads the information in the polygonal surface node and face files
and displays it on the screen.
Reference:
-
Edward Angel,
Interactive Computer Graphics,
a Top-Down Approach with OpenGL,
Addison-Wesley, 2000,
ISBN: 0-201-38597-X,
LC: T385.A514.
Source Code:
-
polygonal_surface_display.m
the main program, which gets the names of the node and face files
of a polygonal surface, reads the data, and displays it on the screen.
-
dtable_data_read.m,
reads a table from a double precision TABLE file.
-
dtable_header_read.m,
reads a table header from a double precision TABLE file.
-
file_column_count.m,
counts the number of columns in the first line of a file.
-
file_row_count.m,
counts the number of row records in a file.
-
i4mat_transpose_print_some.m,
prints some of the transpose of an I4MAT.
-
itable_data_read.m,
reads a table from an integer TABLE file.
-
itable_header_read.m,
reads a table header from an integer TABLE file.
-
polygonal_surface_face_file_read.m
reads the polygonal surface face file.
-
polygonal_surface_node_file_read.m
reads the polygonal surface node file.
-
r8mat_transpose_print_some.m,
prints some of the transpose of an R8MAT.
-
s_escape_tex.m
de-escapes from TeX escape sequences.
-
s_len_trim.m
returns the length of a string to the last nonblank.
-
s_word_count.m,
counts the number of words in a string.
-
timestamp.m
prints the current YMDHMS date as a time stamp.
Examples and Tests:
SPHERE_Q4 is a sphere, tiled with an 8 by 8 array of
logically rectangular patches.
SPHERE_T3 is a sphere, tiled with an 8 by 8 array of
logically triangular patches.
TETRA_T6 is a tetrahedron, tiled with 6-node triangles.
You can go up one level to
the MATLAB source codes.
Last revised on 19 January 2007.