Some tidying and commenting of LOD code.

This commit is contained in:
David Williams
2010-02-03 21:48:04 +00:00
parent 89c48cdc27
commit 801c7f5c7f
3 changed files with 50 additions and 35 deletions

View File

@ -61,6 +61,15 @@ namespace PolyVox
{
return position;
}
//Returns a value between 0-3, for how many geometry edges (X,Y,Z) this vertex is on.
unsigned int SurfaceVertex::getNoOfGeometryEdges(void) const
{
unsigned int uIsOnEdgeX = static_cast<unsigned int>(isOnGeometryEdgeX());
unsigned int uIsOnEdgeY = static_cast<unsigned int>(isOnGeometryEdgeY());
unsigned int uIsOnEdgeZ = static_cast<unsigned int>(isOnGeometryEdgeZ());
return uIsOnEdgeX + uIsOnEdgeY + uIsOnEdgeZ;
}
bool SurfaceVertex::isOnEdge(void) const
{