Fix to correct method
This commit is contained in:
parent
839e5374b6
commit
0f838d54b6
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user