Normalized line endings
This commit is contained in:
@ -34,26 +34,26 @@ freely, subject to the following restrictions:
|
||||
|
||||
using namespace PolyVox;
|
||||
|
||||
template<typename _VoxelType>
|
||||
class CustomIsQuadNeeded
|
||||
{
|
||||
template<typename _VoxelType>
|
||||
class CustomIsQuadNeeded
|
||||
{
|
||||
public:
|
||||
typedef _VoxelType VoxelType;
|
||||
|
||||
bool operator()(VoxelType back, VoxelType front, VoxelType& materialToUse)
|
||||
{
|
||||
// Not a useful test - it just does something different
|
||||
// to the DefaultIsQuadNeeded so we can check it compiles.
|
||||
if ((back > 1) && (front <= 1))
|
||||
{
|
||||
bool operator()(VoxelType back, VoxelType front, VoxelType& materialToUse)
|
||||
{
|
||||
// Not a useful test - it just does something different
|
||||
// to the DefaultIsQuadNeeded so we can check it compiles.
|
||||
if ((back > 1) && (front <= 1))
|
||||
{
|
||||
materialToUse = static_cast<VoxelType>(back);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Runs the surface extractor for a given type.
|
||||
|
Reference in New Issue
Block a user