|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.rendering.r3d.multiresolution.MultiresolutionMesh
public class MultiresolutionMesh
Implementation of a fragment based multiresolution model for massive triangle meshes (e.g. large terrain surfaces, but also suitable for free-form surfaces) based on the Batched Multi-Triangulation as described by Cignoni et al.
This class encapsulates the augmented multiresolution-DAG:
SelectiveRefinement
,
SpatialSelection
,
LODCriterion
Field Summary | |
---|---|
Arc[] |
arcs
Contains all Arc s of the DAG, the array index corresponds to its id. |
MeshFragment[] |
fragments
Contains all MeshFragment s of the DAG, the array index corresponds to its id. |
static String |
FRAGMENTS_FILE_NAME
Default name for the binary file that contains the mesh fragments. |
static String |
INDEX_FILE_NAME
Default name for the binary index file that contains the multiresolution DAG. |
Node[] |
nodes
Contains all Node s of the DAG, the array index corresponds to its id. |
Constructor Summary | |
---|---|
MultiresolutionMesh(File dir,
DirectByteBufferPool directBufferPool)
Creates a new MultiresolutionMesh by reading the fragment (FRAGMENTS_FILE_NAME ) and index (
INDEX_FILE_NAME ) blobs in the given directory. |
|
MultiresolutionMesh(File mrIndex,
File meshFragments,
DirectByteBufferPool directBufferPool)
Creates a new MultiresolutionMesh by reading the specified fragment (FRAGMENTS_FILE_NAME ) and
index ( INDEX_FILE_NAME ) blobs. |
Method Summary | |
---|---|
List<MeshFragment> |
extractLOD(LODCriterion crit)
Extracts the smallest LOD that satisfies the given LOD criterion. |
List<MeshFragment> |
extractLODFragment(LODCriterion crit,
ViewFrustum roi)
Extracts the smallest LOD fragment that satisfies the given LOD criterion . |
double[][] |
getBBox()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FRAGMENTS_FILE_NAME
public static final String INDEX_FILE_NAME
public Node[] nodes
Node
s of the DAG, the array index corresponds to its id.
public Arc[] arcs
Arc
s of the DAG, the array index corresponds to its id.
public MeshFragment[] fragments
MeshFragment
s of the DAG, the array index corresponds to its id.
Constructor Detail |
---|
public MultiresolutionMesh(File dir, DirectByteBufferPool directBufferPool) throws IOException
MultiresolutionMesh
by reading the fragment (FRAGMENTS_FILE_NAME
) and index (
INDEX_FILE_NAME
) blobs in the given directory.
dir
- directory that contains the fragment and index blobs to be read
IOException
public MultiresolutionMesh(File mrIndex, File meshFragments, DirectByteBufferPool directBufferPool) throws IOException
MultiresolutionMesh
by reading the specified fragment (FRAGMENTS_FILE_NAME
) and
index ( INDEX_FILE_NAME
) blobs.
mrIndex
- index blobmeshFragments
- fragment blob
IOException
Method Detail |
---|
public final double[][] getBBox()
public List<MeshFragment> extractLOD(LODCriterion crit)
crit
- criterion that the LOD must satisfies
public List<MeshFragment> extractLODFragment(LODCriterion crit, ViewFrustum roi)
crit
- criterion that the LOD must satisfiesroi
-
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |