1. Volumes of Fun
  2. Main
  3. PolyVox

Commits

David Williams  committed 62f273b

Small changes, hoping to help the Linux version compile.

  • Participants
  • Parent commits 0a4ffc2
  • Branches develop

Comments (0)

Files changed (2)

File library/PolyVoxCore/include/PolyVoxCore/VolumeResampler.inl

View file
  • Ignore whitespace
 			{
 				for(int32_t sx = m_regSrc.getLowerX(), dx = m_regDst.getLowerX(); dx <= m_regDst.getUpperX(); sx++,dx++)
 				{
-					const typename SrcVolumeType::VoxelType& tSrcVoxel = m_pVolSrc->getVoxel<WrapModes::DontCheck>(sx,sy,sz);
+					const typename SrcVolumeType::VoxelType& tSrcVoxel = m_pVolSrc->getVoxel(sx,sy,sz, WrapModes::DontCheck); // FIXME use templatised version of getVoxel(), but watch out for Linux compile issues.
 					const typename DstVolumeType::VoxelType& tDstVoxel = static_cast<typename DstVolumeType::VoxelType>(tSrcVoxel);
 					m_pVolDst->setVoxelAt(dx,dy,dz,tDstVoxel);
 				}

File tests/TestAStarPathfinder.cpp

View file
  • Ignore whitespace
 		return false;
 	}
 
-	typename VolumeType::VoxelType voxel = volData->getVoxel<WrapModes::None>(v3dPos);
+	typename VolumeType::VoxelType voxel = volData->getVoxel(v3dPos, WrapModes::None);  // FIXME use templatised version of getVoxel(), but watch out for Linux compile issues.
 	if(voxel != 0)
 	{
 		return false;