org.jcae.mesh.xmldata
Class Amibe2UNV

java.lang.Object
  extended by org.jcae.mesh.xmldata.Amibe2UNV

public class Amibe2UNV
extends java.lang.Object

Convert an Amibe mesh to a UNV mesh. The convertion is out-of-core and can handle large mesh.

Author:
Jerome Robert
See Also:
MeshExporter.UNV

Field Summary
protected  java.lang.String[] names
           
static int UNIT_METER
           
static int UNIT_MM
           
 
Constructor Summary
Amibe2UNV(java.io.File directory)
           
 
Method Summary
protected  java.io.File getNodeFile()
           
protected  java.io.File getNormalFile()
           
static void main(java.lang.String[] args)
          A main method for debugging
 void setUnit(int unit)
           
 void write(java.io.PrintStream out)
           
 void write(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIT_METER

public static final int UNIT_METER
See Also:
Constant Field Values

UNIT_MM

public static final int UNIT_MM
See Also:
Constant Field Values

names

protected java.lang.String[] names
Constructor Detail

Amibe2UNV

public Amibe2UNV(java.io.File directory)
Parameters:
directory - The directory which contain 3d files
Method Detail

main

public static void main(java.lang.String[] args)
A main method for debugging

Parameters:
args -

getNodeFile

protected java.io.File getNodeFile()

getNormalFile

protected java.io.File getNormalFile()

setUnit

public void setUnit(int unit)

write

public void write(java.io.PrintStream out)
           throws javax.xml.parsers.ParserConfigurationException,
                  org.xml.sax.SAXException,
                  java.io.IOException
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

write

public void write(java.lang.String fileName)
Parameters:
fileName - The UNV filename. If the name ends with ".gz" it will be zlib compressed.
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException