Personal tools
You are here: Home / Software / Utilities / mixd2off

MIXD2OFF Converter

MIXD2OFF is a utility used to convert files from MIXD format into the Object File Format (OFF), which is the format used by OpenFlipper to represent surfaces of a model.

Object File Format Specifications[1]

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

Installation


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

and run make at 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".

Usage


There are two ways to use the converter:
  1. Run mixd2off from the directory which contains your mixd data. The converter now automatically looks for an input file called mixd2off.in within the current directory.
  2. If you don't have a mixd2off.in file 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.

Input


The following table contains the keywords used for the input file. Multiple parameters following a keyword are separated by spaces.

KeyDescriptionExampleDefault
source %s get number of elements and nodes from this file source minf minf
mien %s file name for connectivity mien mien mien
mrng %s file name for face groups mrng mrng mrng
mxyz %s file name for coordinates mxyz mxyz mxyz
mesh %s name of the output off file mesh art3D.off noname
format binary|ascii format, in which the off file will be written format ascii binary
semion|off semi-discrete formulation semi on off
nrng %d number of reference groups to be considered nrng 5 1
irng %d %d... ids of reference groups that will be considered. This input is optional, if not given default value will be used, where m is nrng irng 1 3 14 15 1 - m

The order of the keywords is not important except for just one case: nrng comes before irng.

Example of an mixd2off.in file:

source minf
mien mien
mrng mrng
mxyz mxyz

mesh art3D.off format binary

semi off

nrng 5 irng 1 3 7 8 9


References

  1. ^ based on Object File Format (.off), by Princeton Shape Retrieval and Analysis Group.

« May 2013 »
May
MoTuWeThFrSaSu
12345
6789101112
13141516171819
20212223242526
2728293031
Upcoming Events
Marine 2013 May 29, 2013 - May 31, 2013 — Hamburg, Germany
MPF 2013 Jun 11, 2013 - Jun 14, 2013 — Sardinia, Italy
Coupled Problems 2013 Jun 17, 2013 - Jun 19, 2013 — Ibiza, Spain
USNCCM 12 Jul 22, 2013 - Jul 25, 2013 — Raleigh, North Carolina
GACM 2013 Sep 30, 2013 - Oct 02, 2013 — Hamburg, Germany
Upcoming events…