PLY_TO_TRI_SURFACE
Convert data from PLY to TRI_SURFACE format


PLY_TO_TRI_SURFACE is a MATLAB program which reads data from a PLY file describing a polygonal mesh of a 3D surface,and converts it to a pair of arrays describing a triangular mesh or TRI_SURFACE.

A PLY file contains a sophisticated data structure describing a polygonal surface. A triangulated mesh is a very simply case of such a surface; a PLY file can also describe a mesh surface involving higher order polygons, and it can contain auxilliary information about normal vectors and so on.

A TRI_SURFACE or triangulated mesh surface, is described by a pair of arrays:

Author:

The original versions of the files PLY_READ.M and PLY_TO_TRI_SURFACE.M were created by Pascal Getreuer.

Usage:

[ node_xyz, triangle_node] = ply_to_tri_surface ( ply_file_name )
reads data from the PLY file ply_file_name, and returns the node coordinate and triangle node arrays as node_xyz and triangle_node.

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.

OBJ_TO_TRI_SURFACE, a MATLAB program which reads an OBJ file, and extracts the surface mesh data as a TRI_SURFACE dataset.

PLY is a data directory which contains a description and examples of PLY files.

PLY_IO is a C library which reads or writes a PLY file.

PLY_IO is a MATLAB library which reads or writes a PLY file.

PLY_TO_OBJ is a C program which reads a PLY 3D graphics file and writes an equivalent OBJ graphics file.

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.

STLA_TO_TRI_SURFACE, a MATLAB program which reads a STlA file, and extracts the surface mesh data as a TRI_SURFACE dataset.

TRI_SURFACE is a data directory which contains examples of TRI_SURFACE files.

TRI_SURFACE_DISPLAY is a MATLAB program which displays a TRI_SURFACE.

TRI_SURFACE_IO, a MATLAB library which reads and writes the 3D graphics information in an TRI_SURFACE file;

TRI_SURFACE_TO_PLY is a MATLAB program which converts TRI_SURFACE data to data suitable for storage as a PLY file.

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

Source Code:

Examples and Tests:

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


Last revised on 28 September 2008.