org.critterai.nmgen
Class IntermediateData

java.lang.Object
  extended by org.critterai.nmgen.IntermediateData

public final class IntermediateData
extends Object

A class used to hold intermediate and performance data related to building the navigation mesh.

The entire build process is represented when this data is combined with the source geometry and final navigation mesh.


Field Summary
 long contourGenTime
          The time to perform contour generation.
 long finalMeshGenTime
          The time to perform the final triangulation.
 long polyGenTime
          The time to perform polygon generation.
 long regionGenTime
          The time to perform region generation.
static long UNDEFINED
          The data is undefined.
 long voxelizationTime
          The time to perform voxelization.
 
Constructor Summary
IntermediateData()
           
 
Method Summary
 ContourSet contours()
          The contour set associated with the open heightfield.
 long getTotalGenTime()
          Returns the total time to generate the navigation mesh.
 OpenHeightfield openHeightfield()
          The open heightfield associated with the solid heightfield.
 PolyMeshField polyMesh()
          The polygon mesh associated with the contour set.
 void reset()
          Resets all data to null.
 void setContours(ContourSet contours)
          Sets the contour set.
 void setOpenHeightfield(OpenHeightfield field)
          Sets the open heightfield.
 void setPolyMesh(PolyMeshField mesh)
          Sets the polygon mesh.
 void setSolidHeightfield(SolidHeightfield field)
          Sets the solid height field.
 SolidHeightfield solidHeightfield()
          The solid heightfield associated with the source geometry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final long UNDEFINED
The data is undefined. (Has not been set.)

See Also:
Constant Field Values

voxelizationTime

public long voxelizationTime
The time to perform voxelization. (ns)


regionGenTime

public long regionGenTime
The time to perform region generation. (ns)


contourGenTime

public long contourGenTime
The time to perform contour generation. (ns)


polyGenTime

public long polyGenTime
The time to perform polygon generation. (ns)


finalMeshGenTime

public long finalMeshGenTime
The time to perform the final triangulation. (ns)

Constructor Detail

IntermediateData

public IntermediateData()
Method Detail

contours

public ContourSet contours()
The contour set associated with the open heightfield.

Returns:
The contours associated with the open heightfield.

getTotalGenTime

public long getTotalGenTime()
Returns the total time to generate the navigation mesh. (ns)

Returns:
The total time to generate the navigation mesh. (ns)

openHeightfield

public OpenHeightfield openHeightfield()
The open heightfield associated with the solid heightfield.

Returns:
The open heightfield associated with the solid heightfield.

polyMesh

public PolyMeshField polyMesh()
The polygon mesh associated with the contour set.

Returns:
The polygon mesh associated with the contour set.

reset

public void reset()
Resets all data to null.


setContours

public void setContours(ContourSet contours)
Sets the contour set.

Parameters:
contours - The contour set.

setOpenHeightfield

public void setOpenHeightfield(OpenHeightfield field)
Sets the open heightfield.

Parameters:
field - The open heightfield.

setPolyMesh

public void setPolyMesh(PolyMeshField mesh)
Sets the polygon mesh.

Parameters:
mesh - The polygon mesh.

setSolidHeightfield

public void setSolidHeightfield(SolidHeightfield field)
Sets the solid height field.

Parameters:
field - The solid heightfield.

solidHeightfield

public SolidHeightfield solidHeightfield()
The solid heightfield associated with the source geometry.

Returns:
The solid heightfield derived from the source geometry.


Project Home and Source Code

Copyright 2010 Stephen Pratt. All rights reserved. Use is subject to license terms.