PLY_TO_OBJ
PLY => OBJ Graphics File Conversion


PLY_TO_OBJ is an executable C program which converts a PLY 3D graphics file to an OBJ file.

The program only extracts information about vertices, faces, and vertex normals.

The PLY format allows faces to have as many vertices as desired. The OBJ format assumes faces are triangular. The program does not check that this requirement is being observed when it does the conversion. Therefore, an input file with non-triangular faces will probably result in an unacceptable OBJ file.

Related Data and Programs:

OBJ_2_PLY is a C program which converts an OBJ file to a PLY file.

PLATO_PLY is a C program which writes out any of the five Platonic solids as a PLY file.

PLY is a data directory which contains some information about the PLY format.

PLY_IO is a C library which contains routines needed by PLY_TO_OBJ.

PLY_IO is a MATLAB library which can read or write a PLY file.

PLY_2_IV is an executable C program which converts a PLY 3D graphics file to Inventor format.

PLY_TO_TRI_MESH is a MATLAB program which can read a PLY file, extract the polygonal surface information, and return it as a TRI_MESH dataset.

TRI_MESH_TO_PLY is a MATLAB program which converts a TRI_MESH data structure into a PLY data structure.

Author:

John Burkardt,
based on the program "ply_2_iv" by Greg Turk.

Usage:

ply_to_obj [flags] < file.ply > file.obj
reads graphics data from file.ply and writes it to file.obj

Reference:

  1. the PLY file directory.
  2. the OBJ file directory.

Source Code:

Examples and Tests:

CUBE is a simple definition of a cube. We issue the command

ply_to_obj < cube.ply > cube.obj

List of Routines:

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


Last revised on 29 January 2009.