TEC_TO_OBJ2
Convert TECPLOT Finite Element Files to OBJ Format


TEC_TO_OBJ2 is a FORTRAN90 program which can read a TECPLOT ASCII file defining a 3D surface of triangles or quadrilaterals, and write a corresponding Alias OBJ file.

TEC_TO_OBJ2 is a minor revision of TEC_TO_OBJ. The original program could only read one zone (and only the first one, at that) from a TECPLOT file. The new program tries to read all the zones from a TECPLOT file, and to output all that information into the OBJ file. This feature has not been heavily tested.

TEC_TO_OBJ2 can only read a very specific type of TECPLOT ASCII file, namely, one in which the spatial dimension is 3, and in which the objects are triangular finite elements.

This means that the first three lines of the TECPLOT file should look something like this:

        TITLE = "human.dat created by IVREAD."
        VARIABLES = "X", "Y", "Z", "R", "G", "B"
        ZONE N = 64, E = 96, DATAPACKING = POINT, ZONETYPE = FETRIANGLE
      
or
        TITLE = "human.dat created by IVREAD."
        VARIABLES = "X", "Y", "Z", "R", "G", "B"
        ZONE N = 64, E = 48, DATAPACKING = POINT, ZONETYPE = FEQUADRILATERAL
      
where the important things are:

The TECPLOT home page is
http://www.tecplot.com/

Usage:

tec_to_obj2 file.dat
reads the TECPLOT ASCII file file.dat and creates the Alias OBJ file file.obj.

Licensing:

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

Languages:

TEC_TO_OBJ2 is available in a FORTRAN90 version.

Related Data and Programs:

IVCON, a C++ program which reads an Alias OBJ file and writes out an equivalent file in a variety of formats.

IVREAD, a FORTRAN90 program which reads an Alias OBJ file and write out an equivalent file in a variety of formats.

OBJ, a data directory which contains a description of the Alias OBJ data file format.

OBJ_TO_PLY, a C program which reads an Alias OBJ file and writes a PLY file.

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

OBJ2OPENGL, a PERL script which converts an Alias OBJ file to a C/C++ include file appropriate for use with Open GL;

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

TEC, a data directory which contains a description of TECPLOT files.

TEC_IO, a FORTRAN90 library which reads or writes a TECPLOT file definite a finite element dataset.

TEC_TO_FEM, a FORTRAN90 program which convert a TECPLOT graphics file defining a finite element dataset into a set of FEM files.

TEC_TO_OBJ, a FORTRAN90 program which is an earlier version of TEC_TO_OBJ2.

TEC_WRITE, a FORTRAN90 library which can write TEC files.

Reference:

  1. http://www.alias.com/eng/index.shtml, The Alias web site.
  2. obj_format.txt, some information about the Alias OBJ format.
  3. Tecplot, Inc,
    TECPLOT Reference Manual,
    Version 10, Release 4,
    Tecplot, Inc, 2005.
  4. Tecplot, Inc,
    TECPLOT User's Manual,
    Version 10,
    Tecplot, Inc, 2005.

Source Code:

Examples and Tests:

HUMANOID_TRI is a TECPLOT file describing a humanoid shape using finite element triangles.

HUMANOIDS_TRI is a TECPLOT file describing two humanoid shapes, in two zones, using finite element triangles.

HUMANOID_QUAD is a TECPLOT file describing a humanoid shape using finite element quadrilaterals.

List of Routines:

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


Last revised on 01 February 2008.