Renamed SurfaceExtractionController to MarchingCubesController.

This commit is contained in:
unknown
2012-07-15 17:53:37 +02:00
parent eceb6851c0
commit 9a498bad7b
9 changed files with 39 additions and 28 deletions

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_Density_H__
#define __PolyVox_Density_H__
#include "PolyVoxCore/SurfaceExtractionController.h" //We'll specialise the controller contained in here
#include "PolyVoxCore/MarchingCubesController.h" //We'll specialise the controller contained in here
#include "PolyVoxCore/Voxel.h"
#include "PolyVoxImpl/TypeDef.h"
@ -103,19 +103,19 @@ namespace PolyVox
typedef Density<uint8_t> Density8;
template <typename Type>
class SurfaceExtractionController< Density<Type> >
class MarchingCubesController< Density<Type> >
{
public:
typedef Type DensityType;
typedef float MaterialType;
SurfaceExtractionController(void)
MarchingCubesController(void)
{
// Default to a threshold value halfway between the min and max possible values.
m_tThreshold = (Density<Type>::getMinDensity() + Density<Type>::getMaxDensity()) / 2;
}
SurfaceExtractionController(DensityType tThreshold)
MarchingCubesController(DensityType tThreshold)
{
m_tThreshold = tThreshold;
}