Research > Software >
DuffOffTranslator is an application that converts between the Duff (*.dfs) and Off (*.off) surface formats with a minimal loss of data.
DuffOffTranslator is an application that converts betweent he Duf (*.dfs) and Off (*.off) surface formats with a minimal loss of data.
Portable java executable make compilation unnecessary.
Installation InstructionsCopy java executable 'jar' file to local disk.
DuffOffTranslator converts from Duff to Off or from Off to Duff. The input arguments' order implies the translation that is performed.
The Duff and Off formats both encode triangular faces with vertex RGB colors and normals. All of this information is preserved when converting. There is data, however, that is particular to each format, which is necessarily lost in the process. For example, Duff encodes patient data, an orientation and u-v coordinates, and off encodes an alpha color channel.
The Off format is roughly twice the size of the Duff, so when dealing with large surfaces, it is more space efficient to encode the surface to a Duff. However, Duff is binary, so if you wish the surface to be human-readable, the best option might be to encode the surface to an Off.