TRI_SURFACE_TO_OBJ
Convert 3d graphics data from TRI_SURFACE to OBJ format


TRI_SURFACE_TO_OBJ is a MATLAB program which reads data from a TRI_SURFACE file describing a triangular mesh of a 3D surface, and converts it to an OBJ file.

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

An OBJ file is format for storing a description of the surface of a 3D object, composed of triangles or higher degree polygons.

Usage:

tri_surface_to_obj ( 'node_file', 'element_file', 'obj_file' )
where

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:

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

OBJ_DISPLAY, a MATLAB program which reads an OBJ file and displays it.

OBJ_IO, a MATLAB library which reads or writes an OBJ file.

OBJ_TO_TRI_SURFACE, a MATLAB program which reads an OBJ 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.

TRI_SURFACE_TO_STLA, a MATLAB program which converts TRI_SURFACE data to data suitable for storage as an ASCII STL file.

Source Code:

Examples and Tests:

CUBE is a cube using 8 nodes and 12 triangular faces.

SPHERE is a sphere, using 66 nodes and 119 triangular faces.

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


Last revised on 13 August 2009.