Mostly removed use of VoxelTypeTraits. It's a bit messy because I'm committing halfway through, as I'm away fro my development machine for the next week and want to pick this up from my laptop.
SurfaceExtractor test is currently broken due to custom threshold support not curretly working.
This commit is contained in:
@ -25,9 +25,4 @@ freely, subject to the following restrictions:
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
template<>
|
||||
VoxelTypeTraits<Density8>::DensityType convertToDensity(Density8 voxel)
|
||||
{
|
||||
return voxel.getDensity();
|
||||
}
|
||||
}
|
||||
|
@ -25,27 +25,4 @@ freely, subject to the following restrictions:
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
template<>
|
||||
VoxelTypeTraits<MaterialDensityPair44>::DensityType convertToDensity(MaterialDensityPair44 voxel)
|
||||
{
|
||||
return voxel.getDensity();
|
||||
}
|
||||
|
||||
template<>
|
||||
VoxelTypeTraits<MaterialDensityPair88>::DensityType convertToDensity(MaterialDensityPair88 voxel)
|
||||
{
|
||||
return voxel.getDensity();
|
||||
}
|
||||
|
||||
//template<>
|
||||
ConvertToMaterial<MaterialDensityPair44>::MaterialType ConvertToMaterial<MaterialDensityPair44>::operator()(MaterialDensityPair44 voxel)
|
||||
{
|
||||
return voxel.getMaterial();
|
||||
}
|
||||
|
||||
//template<>
|
||||
ConvertToMaterial<MaterialDensityPair88>::MaterialType ConvertToMaterial<MaterialDensityPair88>::operator()(MaterialDensityPair88 voxel)
|
||||
{
|
||||
return voxel.getMaterial();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user