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:

Usage:

[ node_xyz, triangle_node] = ply_to_tri_surface ( 'ply_file_name' )
where

Licensing:

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

Languages:

PLY_TO_TRI_SURFACE is available in a MATLAB version.

Related Data and Programs:

BEZIER_SURFACE_DISPLAY, a MATLAB program which reads two files defining a Bezier surface and displays it.

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.

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

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

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

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

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

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

POLYGONAL_SURFACE, a data directory which contains examples of polygonal surface files.

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

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

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

TRI_SURFACE_DISPLAY, a MATLAB program which displays a TRI_SURFACE.

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

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

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

Author:

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

Source Code:

Examples and Tests:

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


Last revised on 05 December 2010.