getEnclosedRegion now return a const ref.
This commit is contained in:
parent
c98f65c9a5
commit
a7d7f64554
@ -125,7 +125,7 @@ namespace PolyVox
|
||||
/// Gets the value used for voxels which are outside the volume
|
||||
VoxelType getBorderValue(void) const;
|
||||
/// Gets a Region representing the extents of the Volume.
|
||||
Region getEnclosingRegion(void) const;
|
||||
const Region& getEnclosingRegion(void) const;
|
||||
/// Gets the width of the volume in voxels.
|
||||
int32_t getWidth(void) const;
|
||||
/// Gets the height of the volume in voxels.
|
||||
|
@ -84,7 +84,7 @@ namespace PolyVox
|
||||
/// \return A Region representing the extent of the volume.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
template <typename VoxelType>
|
||||
Region BaseVolume<VoxelType>::getEnclosingRegion(void) const
|
||||
const Region& BaseVolume<VoxelType>::getEnclosingRegion(void) const
|
||||
{
|
||||
return m_regValidRegion;
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ namespace PolyVox
|
||||
MaterialDensityPair() : m_uMaterial(0), m_uDensity(0) {}
|
||||
|
||||
// FIXME - This is a bit odd... we need to allow the MaterialDensityPair to be initialised with a single integer
|
||||
// and PolyVox often initialises voxels by calling VoxelType(0). Is there a better way we should handle this?
|
||||
// because PolyVox often initialises voxels by calling VoxelType(0). Is there a better way we should handle this?
|
||||
MaterialDensityPair(Type tValue) : m_uMaterial(tValue), m_uDensity(tValue) {}
|
||||
MaterialDensityPair(Type uMaterial, Type uDensity) : m_uMaterial(uMaterial), m_uDensity(uDensity) {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user