Object File Format Specifications
OFF files are used to represent a model by specifying the polygons of the model's surface. They can be ASCII files beginning with the keyword OFF or binary files beginning with the keyword OFF BINARY. The next line states the number of nodes, the number of faces, and the number of edges. The number of edges can be safely ignored.
The nodes are listed with x, y, z coordinates, written one per line. After the list of nodes, the faces are listed, with one face per line. For each face, the number of nodes is specified, followed by indices into the list of nodes.
Note that nodes are numbered starting at 0 (not starting at 1), and that numEdges will always be zero. A simple example for a cube:
OFF 8 6 0 -0.500000 -0.500000 0.500000 0.500000 -0.500000 0.500000 -0.500000 0.500000 0.500000 0.500000 0.500000 0.500000 -0.500000 0.500000 -0.500000 0.500000 0.500000 -0.500000 -0.500000 -0.500000 -0.500000 0.500000 -0.500000 -0.500000 4 0 1 3 2 4 2 3 5 4 4 4 5 7 6 4 6 7 1 0 4 1 7 5 3 4 6 0 2 4
The current MIXD2OFF version is available via a svn repository. To do a checkout you will need a svn username and password, ask Markus Probst for more information.
If you have username and password then just run:
svn co https://svn.rwth-aachen.de/repos/mp985962_mixd2off
makeat the source code folder.
Data and System Requirements
MIXD2OFF reads standard MIXD format data files. The files should be pure IEEE binary, big-endian, 64-bit floating point, node-level. The converter has been successfully compiled and ran in: Mac OS X version 10.5 "Leopard".
There are two ways to use the converter:
mixd2offfrom the directory which contains your mixd data. The converter now automatically looks for an input file called
mixd2off.inwithin the current directory.
- If you don't have a
mixd2off.infile or your current directory is not the directory which contains your mixd data. The converter automatically asks at the prompt for all the necessary information it needs to make the conversion.
The following table contains the keywords used for the input file. Multiple parameters following a keyword are separated by spaces.
||get number of elements and nodes from this file||
||file name for connectivity||
||file name for face groups||
||file name for coordinates||
||name of the output off file||
||format, in which the off file will be written||
||number of reference groups to be considered||
||ids of reference groups that will be considered. This input is optional, if not given default value will be used, where
The order of the keywords is not important except for just one case:
nrng comes before
Example of an
source minf mien mien mrng mrng mxyz mxyz
mesh art3D.off format binary
nrng 5 irng 1 3 7 8 9