Fix to correct method

This commit is contained in:
Matt Williams 2012-11-22 21:56:18 +00:00
parent 839e5374b6
commit 0f838d54b6

View File

@ -83,13 +83,13 @@ namespace PolyVox
template< typename SrcVolumeType, typename DstVolumeType> template< typename SrcVolumeType, typename DstVolumeType>
void VolumeResampler<SrcVolumeType, DstVolumeType>::resampleArbitrary() void VolumeResampler<SrcVolumeType, DstVolumeType>::resampleArbitrary()
{ {
float srcWidth = m_regSrc.getWidthInVoxels(); float srcWidth = m_regSrc.getWidthInCells();
float srcHeight = m_regSrc.getHeightInVoxels(); float srcHeight = m_regSrc.getHeightInCells();
float srcDepth = m_regSrc.getDepthInVoxels(); float srcDepth = m_regSrc.getDepthInCells();
float dstWidth = m_regDst.getWidthInVoxels(); float dstWidth = m_regDst.getWidthInCells();
float dstHeight = m_regDst.getHeightInVoxels(); float dstHeight = m_regDst.getHeightInCells();
float dstDepth = m_regDst.getDepthInVoxels(); float dstDepth = m_regDst.getDepthInCells();
float fScaleX = srcWidth / dstWidth; float fScaleX = srcWidth / dstWidth;
float fScaleY = srcHeight / dstHeight; float fScaleY = srcHeight / dstHeight;