org.jcae.mesh.xmldata
Class Amibe2VTK

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

public class Amibe2VTK
extends java.lang.Object

Convert an Amibe mesh to a VTK file. Output file extension should be .vtp. The documentation of the file format may be found here: http://www.vtk.org/pdf/file-formats.pdf

Author:
Jerome Robert
To do:
output one VTK piece by mesh group, support VTK parellel files.

Constructor Summary
Amibe2VTK(java.io.File directory)
           
 
Method Summary
 boolean isDummyData()
           
static void main(java.lang.String[] args)
          A main method for debugging
 void setDummyData(boolean dummyData)
          Write data cell associated to triangles It's a scalar double value which is the ID of the triangle.
 void write(java.io.OutputStream out)
          Write the VTK file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Amibe2VTK

public Amibe2VTK(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 -

write

public void write(java.io.OutputStream out)
           throws javax.xml.parsers.ParserConfigurationException,
                  org.xml.sax.SAXException,
                  java.io.IOException
Write the VTK file

Parameters:
out - The stream to write on
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

isDummyData

public boolean isDummyData()

setDummyData

public void setDummyData(boolean dummyData)
Write data cell associated to triangles It's a scalar double value which is the ID of the triangle. It won't help you much, it's just to have the code somewhere?