org.jcae.mesh.xmldata
Class MeshReader

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

public class MeshReader
extends java.lang.Object


Constructor Summary
MeshReader()
           
 
Method Summary
static int[] getInfos(java.lang.String xmlDir)
           
static void main(java.lang.String[] args)
           
static void mergeGroups(java.lang.String xmlDir, java.lang.String xmlGroupsFile)
           
static void readObject(Mesh2D mesh, java.lang.String xmlDir, int iFace)
          Loads an Amibe 2D XML file into an existing Mesh2D instance.
static void readObject3D(Mesh mesh, java.lang.String xmlDir)
          Loads an Amibe 3D XML file into an existing Mesh instance.
static void readObject3D(Mesh mesh, java.lang.String xmlDir, double ridgeAngle)
          Loads an Amibe 3D XML file into an existing Mesh instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeshReader

public MeshReader()
Method Detail

readObject

public static void readObject(Mesh2D mesh,
                              java.lang.String xmlDir,
                              int iFace)
                       throws java.io.IOException
Loads an Amibe 2D XML file into an existing Mesh2D instance.

Parameters:
mesh - data structure updated when reading files
xmlDir - directory containing XML files
iFace - face number
Throws:
java.io.IOException

readObject3D

public static void readObject3D(Mesh mesh,
                                java.lang.String xmlDir)
                         throws java.io.IOException
Loads an Amibe 3D XML file into an existing Mesh instance.

Parameters:
mesh - data structure updated when reading files
xmlDir - directory containing XML files
Throws:
java.io.IOException

readObject3D

public static void readObject3D(Mesh mesh,
                                java.lang.String xmlDir,
                                double ridgeAngle)
                         throws java.io.IOException
Loads an Amibe 3D XML file into an existing Mesh instance.

Parameters:
mesh - data structure updated when reading files
xmlDir - directory containing XML files
ridgeAngle - an edge with a dihedral angle lower than this value is considered as a sharp edge which has to be preserved.
Throws:
java.io.IOException

getInfos

public static int[] getInfos(java.lang.String xmlDir)

mergeGroups

public static void mergeGroups(java.lang.String xmlDir,
                               java.lang.String xmlGroupsFile)

main

public static void main(java.lang.String[] args)