XYZF_DISPLAY
Display 3D Points and Faces in the MATLAB Graphics Window


XYZF_DISPLAY is a MATLAB program which reads XYZF information containing a list of 3D point coordinates, and the indices of points that form faces, and displays a plot in the MATLAB graphics window.

SXYZ_VORONOI, which computes the Voronoi diagram for a set of points on a sphere, is an example of the programs whose output can be displayed by XYZF_DISPLAY.

Usage:

xyzf_display ( 'prefix' )
where reads the point coordinate data in 'prefix.xyz' and the face information in 'prefix.xyzf', and displays a plot.

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;

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.

PLOT_POINTS, a FORTRAN90 program which reads a set of points from a file and plots them into an Encapsulated PostScript file.

PLY_DISPLAY, a MATLAB program which displays an image of a 3D graphics file in PLY format;

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

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

XYZ_DISPLAY, a MATLAB program which reads XYZ information defining points in 3D, and displays an image in the MATLAB graphics window.

XYZ_IO, a MATLAB library which reads and writes files in the XYZ, XYZL, and XYZF formats.

XYZF, a data directory which contains examples of XYZF files, a simple 3D graphics point and face format;

XYZF_DISPLAY_OPENGL, a C++ program which reads XYZF information defining points and faces in 3D, and displays an image using OpenGL.

XYZL_DISPLAY, a MATLAB program which reads XYZL information defining points and lines in 3D, and displays an image in a MATLAB graphics window.

Source Code:

Examples and Tests:

ELLELL is a shape that looks like an office building, with an L-shaped base and L-shaped profile, using 20 nodes and 18 rectangular faces.

RBC approximates the shape of a red blood cell.

SPHERE is a surface that approximates a sphere.

TET1 is a tetrahedron.

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


Last revised on 10 June 2012.