obj_to_tri_surface


obj_to_tri_surface, an Octave code which reads data from an OBJ file describing a polygonal mesh of a 3D surface, and converts it to a pair of arrays describing a triangular mesh or TRI_SURFACE.

Since the faces in an OBJ file can be of any polygonal order, while the faces in a TRI_SURFACE file must be triangular, the program automatically uses a crude method to break up higher order faces from the OBJ file into triangles.

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

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

Licensing:

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

Languages:

obj_to_tri_surface is available in a MATLAB version and an Octave version.

Related Data and Programs:

obj_to_tri_surface_test

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

obj_display, an Octave code which reads an OBJ file and displays it.

obj_io, an Octave code which reads or writes an OBJ file.

stla_to_tri_surface, an Octave code 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, an Octave code which displays a TRI_SURFACE.

tri_surface_to_obj, an Octave code which reads a TRI_SURFACE dataset and extracts the surface mesh data as an OBJ file.

Source Code:


Last revised on 15 June 2023.