This class represents a voxel storing only a density.
More...
#include <Density.h>
List of all members.
Detailed Description
template<typename DensityType>
class PolyVox::Density< DensityType >
This class represents a voxel storing only a density.
In order to perform a surface extraction on a LargeVolume, PolyVox needs the underlying voxel type to provide both getDensity() and getMaterial() functions. The getDensity() function is used to determine if a voxel is 'solid', and if it is then the getMaterial() funtion is used to determine what material should be assigned to the resulting mesh.
This class meets these requirements, although it only actually stores a density value. For the getMaterial() function it just returens a constant value of '1'.
- See also:
- Material, MaterialDensityPair
Definition at line 47 of file Density.h.
Constructor & Destructor Documentation
template<typename DensityType >
template<typename DensityType >
Member Function Documentation
template<typename DensityType >
DensityType PolyVox::Density< DensityType >::getDensity |
( |
|
) |
const throw () [inline] |
template<typename DensityType >
uint32_t PolyVox::Density< DensityType >::getMaterial |
( |
|
) |
const throw () [inline] |
template<typename DensityType >
static DensityType PolyVox::Density< DensityType >::getMaxDensity |
( |
|
) |
throw () [inline, static] |
template<typename DensityType >
static DensityType PolyVox::Density< DensityType >::getMinDensity |
( |
|
) |
throw () [inline, static] |
template<typename DensityType >
static DensityType PolyVox::Density< DensityType >::getThreshold |
( |
|
) |
throw () [inline, static] |
template<typename DensityType >
template<typename DensityType >
template<typename DensityType >
void PolyVox::Density< DensityType >::setDensity |
( |
DensityType |
uDensity |
) |
[inline] |
template<typename DensityType >
void PolyVox::Density< DensityType >::setMaterial |
( |
uint32_t |
uMaterial |
) |
[inline] |
The documentation for this class was generated from the following file: