|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcae.mesh.oemm.RawStorage
public class RawStorage
Convert a triangle soup into an OEMM data structure. The different steps
can be found in MeshOEMMIndex, here is a summary:
OEMM instance with desired depth.
| Nested Class Summary | |
|---|---|
static interface |
RawStorage.SoupReaderInterface
|
| Constructor Summary | |
|---|---|
RawStorage()
|
|
| Method Summary | |
|---|---|
static boolean |
countTriangles(OEMM tree,
java.lang.String soupFile)
Builds an OEMM and counts the number of triangles which have to be assigned to each leaf. |
static boolean |
countTriangles(OEMM tree,
java.lang.String soupFile,
boolean build)
Counts the number of triangles which have to be assigned to each leaf. |
static void |
dispatch(OEMM tree,
java.lang.String soupFile,
java.lang.String structFile,
java.lang.String dataFile)
Reads a triangle soup and dispatches triangles into an intermediate OEMM data structure. |
static void |
indexOEMM(java.lang.String structFile,
java.lang.String outDir)
Transforms dispatched file into an OEMM. |
static void |
readSoup(java.lang.String file,
RawStorage.SoupReaderInterface proc)
Reads a triangle soup and executes a procedure on all triangles and vertices. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawStorage()
| Method Detail |
|---|
public static void readSoup(java.lang.String file,
RawStorage.SoupReaderInterface proc)
file - triangle soup file nameproc - a RawStorage.SoupReaderInterface instance, its
RawStorage.SoupReaderInterface.processVertex(int, double[]) method is called for each
vertex, and RawStorage.SoupReaderInterface.processTriangle(int) is called
for each triangle.
public static boolean countTriangles(OEMM tree,
java.lang.String soupFile)
tree - an OEMMsoupFile - triangle soup file name
false if a vertex was found outside of octree
bounds, true otherwise.
public static boolean countTriangles(OEMM tree,
java.lang.String soupFile,
boolean build)
tree - an OEMMsoupFile - triangle soup file namebuild - if true, OEMM instance is built. Otherwise,
it is supposed to have already been built.
false if a vertex was found outside of octree
bounds, true otherwise.
public static final void dispatch(OEMM tree,
java.lang.String soupFile,
java.lang.String structFile,
java.lang.String dataFile)
countTriangles(org.jcae.mesh.oemm.OEMM, java.lang.String), and
will now be written onto disk as a linear octree. Each block is
composed of a header containing:
tree - an OEMMsoupFile - triangle soup file namestructFile - output file containing dispatched data structuredataFile - dispatched data file
public static void indexOEMM(java.lang.String structFile,
java.lang.String outDir)
structFile - dispatched file.outDir - directory in which OEMM structure will be stored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||