Added initial version of SimpleVolume by duplicating LargeVolume.

This commit is contained in:
David Williams
2011-04-29 22:02:40 +01:00
parent 34cd8c05ed
commit afbf49f626
7 changed files with 1648 additions and 12 deletions

View File

@ -31,18 +31,18 @@ freely, subject to the following restrictions:
namespace PolyVox
{
template <typename VoxelType>
template <typename VolumeType, typename VoxelType>
class CubicSurfaceExtractorWithNormals
{
public:
CubicSurfaceExtractorWithNormals(LargeVolume<VoxelType>* volData, Region region, SurfaceMesh<PositionMaterialNormal>* result);
CubicSurfaceExtractorWithNormals(VolumeType* volData, Region region, SurfaceMesh<PositionMaterialNormal>* result);
void execute();
private:
//The volume data and a sampler to access it.
LargeVolume<VoxelType>* m_volData;
typename LargeVolume<VoxelType>::Sampler m_sampVolume;
VolumeType* m_volData;
typename VolumeType::Sampler m_sampVolume;
//The surface patch we are currently filling.
SurfaceMesh<PositionMaterialNormal>* m_meshCurrent;