org.jcae.mesh.bora.xmldata
Class Storage

java.lang.Object
  extended by org.jcae.mesh.bora.xmldata.Storage

public class Storage
extends java.lang.Object


Constructor Summary
Storage()
           
 
Method Summary
static void readAllFaces(Mesh m, BCADGraphCell root)
          Populates a Mesh instance by reading all faces.
static void readAllFaces(Mesh m, BCADGraphCell root, BSubMesh s)
          Populates a Mesh instance by reading all faces.
static void readAllVolumes(Mesh m, BCADGraphCell root, BSubMesh s)
          Populates a Mesh instance by reading all volumes.
static void readFace(Mesh mesh, BCADGraphCell face, BSubMesh s,  mapRefVertex)
          Append a discretized face into a Mesh instance.
static void readVolume(Mesh mesh, BCADGraphCell volume, BSubMesh s,  mapRefVertex)
          Append a discretized solid into a Mesh instance.
static void writeEdge(BDiscretization d, java.lang.String outDir)
           
static void writeFace(BDiscretization d, java.lang.String outDir)
           
static void writeId(java.io.File dir, int id)
           
static void writeSolid(BDiscretization d, java.lang.String outDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Storage

public Storage()
Method Detail

writeId

public static void writeId(java.io.File dir,
                           int id)

writeEdge

public static void writeEdge(BDiscretization d,
                             java.lang.String outDir)

writeFace

public static void writeFace(BDiscretization d,
                             java.lang.String outDir)

writeSolid

public static void writeSolid(BDiscretization d,
                              java.lang.String outDir)

readAllFaces

public static void readAllFaces(Mesh m,
                                BCADGraphCell root)
Populates a Mesh instance by reading all faces.

Parameters:
m - Mesh instance
root - root shape
Throws:
java.lang.RuntimeException - if an error occurred

readAllFaces

public static void readAllFaces(Mesh m,
                                BCADGraphCell root,
                                BSubMesh s)
Populates a Mesh instance by reading all faces.

Parameters:
m - Mesh instance
root - root shape
s - consider discretizations only if they appear in this BSubMesh instance
Throws:
java.lang.RuntimeException - if an error occurred

readFace

public static void readFace(Mesh mesh,
                            BCADGraphCell face,
                            BSubMesh s,
                             mapRefVertex)
Append a discretized face into a Mesh instance.

Parameters:
mesh - original mesh
face - cell graph containing a CAD face
s - consider discretizations only if they appear in this BSubMesh instance
mapRefVertex - map between references and Vertex instances
Throws:
java.lang.RuntimeException - if an error occurred

readAllVolumes

public static void readAllVolumes(Mesh m,
                                  BCADGraphCell root,
                                  BSubMesh s)
Populates a Mesh instance by reading all volumes.

Parameters:
m - Mesh instance
root - root shape
Throws:
java.lang.RuntimeException - if an error occurred

readVolume

public static void readVolume(Mesh mesh,
                              BCADGraphCell volume,
                              BSubMesh s,
                               mapRefVertex)
Append a discretized solid into a Mesh instance.

Parameters:
mesh - original mesh
volume - cell graph containing a CAD solid
mapRefVertex - map between references and Vertex instances
Throws:
java.lang.RuntimeException - if an error occurred