obj_to_tri_surface, a MATLAB 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:
The computer code and data files described and made available on this web page are distributed under the MIT license
obj_to_tri_surface is available in a MATLAB version.
obj, a data directory which contains a description and examples of OBJ files.
obj_display, a MATLAB code which reads an OBJ file and displays it.
obj_io, a MATLAB code which reads or writes an OBJ file.
stla_to_tri_surface, a MATLAB 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, a MATLAB code which displays a TRI_SURFACE.
tri_surface_to_obj, a MATLAB code which reads a TRI_SURFACE dataset and extracts the surface mesh data as an OBJ file.