XYZF Files


XYZF is a data directory which contains examples of a simple format for recording points and faces in 3D space.

An XYZF file assumes first the existence of an XYZ file, which lists the (X,Y,Z) coordinates of points. Then the XYZF file is used to define faces by listing the indices of a sequence of points in the XYZ file that are to be connected.

Example XYZ File and XYZF file:


        #  Vertices of a cube
        #
        0.0  0.0  0.0
        0.0  0.0  1.0
        0.0  1.0  1.0
        0.0  1.0  0.0
        1.0  0.0  0.0
        1.0  0.0  1.0
        1.0  1.0  1.0
        1.0  1.0  0.0
      


        #  Indices of vertices to connect for the faces of the cube
        #
        1 2 3 4
        2 6 7 3
        6 5 8 7
        5 1 4 8
        4 3 6 5
        5 6 2 1
      

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:

SXYZ_VORONOI reads an XYZ file of coordinates of points on the unit sphere, and writes out an XYZ file of Voronoi vertices, and an XYZF file of Voronoi faces.

TABLE, a data directory which contains examples of TABLE files, a simple format for N points in M dimensions;

XYZ is a data directory which contains some examples of 3D pointsets.

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

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

Sample XYZF files:

SPHERE_10 describes 10 points on the unit sphere. The program SXYZ_VORONOI was used to determine the XYZ file of Voronoi vertices and the XYZF file of Voronoi faces.

SPHERE_100 describes 100 points on the unit sphere. The program SXYZ_VORONOI was used to determine the XYZ file of Voronoi vertices and the XYZF file of Voronoi faces.

TET1 uses 4 points to describe a simple tetrahedron.

TET2 uses 4 points to describe the unit tetrahedron { (0,0,0), (1,0,0), (0,1,0), (0,0,1)}.

You can go up one level to the DATA page.


Last revised on 03 July 2009.