|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcae.mesh.oemm.Storage org.jcae.mesh.oemm.MeshReader
public class MeshReader
This class builds a mesh from disk.
Field Summary |
---|
Fields inherited from class org.jcae.mesh.oemm.Storage |
---|
TRIANGLE_SIZE, VERTEX_SIZE |
Constructor Summary | |
---|---|
MeshReader(OEMM o)
Constructor. |
Method Summary | |
---|---|
Mesh |
buildMesh(MeshTraitsBuilder mtb,
TIntHashSet leaves)
Builds a mesh composed of specified octants. |
Mesh |
buildMesh(TIntHashSet leaves)
Builds a mesh composed of specified octants. |
void |
buildMeshes(MeshTraitsBuilder mtb)
Builds meshes for all octants. |
Mesh |
buildWholeMesh()
Builds a mesh composed of all octants. |
Mesh |
getMesh(int leafIndex)
Gets the mesh contained in an octant. |
void |
setLoadNonReadableTriangles(boolean loadNonReadableTriangles)
Allows reading non-readable triangles. |
Methods inherited from class org.jcae.mesh.oemm.Storage |
---|
getAdjacencyFile, getTrianglesFile, getVerticesFile, readAdjacencyFile, readOEMMStructure, saveNodes, storeOEMMStructure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeshReader(OEMM o)
o
- OEMM instanceMethod Detail |
---|
public void setLoadNonReadableTriangles(boolean loadNonReadableTriangles)
true
, such vertices are loaded from disk
to make these triangles as being readable.
loadNonReadableTriangles
- behavior expected.public void buildMeshes(MeshTraitsBuilder mtb)
getMesh(int)
.
mtb
- mesh traits builder used to create Mesh
instancespublic Mesh getMesh(int leafIndex)
leafIndex
- octant index
public Mesh buildWholeMesh()
public Mesh buildMesh(TIntHashSet leaves)
leaves
- set of selected octants
public Mesh buildMesh(MeshTraitsBuilder mtb, TIntHashSet leaves)
mtb
- mesh traits builder used to create Mesh
instancesleaves
- set of selected octants
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |