From ff12264744cd39b20626b45dd449e955aa5a93bc Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 12 Mar 2011 13:43:08 +0000 Subject: [PATCH] Raycast class now returns Vector3DInt32 instead of Vector3DInt16. --- library/PolyVoxCore/include/Raycast.h | 2 +- library/PolyVoxCore/include/Raycast.inl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/PolyVoxCore/include/Raycast.h b/library/PolyVoxCore/include/Raycast.h index 9f4e9764..4c7d0a6d 100644 --- a/library/PolyVoxCore/include/Raycast.h +++ b/library/PolyVoxCore/include/Raycast.h @@ -38,7 +38,7 @@ namespace PolyVox ///Indicates whether an intersection was found bool foundIntersection; ///If an intersection was found then this field holds the intersecting voxel, otherwise it is undefined. - Vector3DInt16 intersectionVoxel; + Vector3DInt32 intersectionVoxel; }; /// The Raycast class can be used to find the fist filled voxel along a given path. diff --git a/library/PolyVoxCore/include/Raycast.inl b/library/PolyVoxCore/include/Raycast.inl index 37b37397..d108e66b 100644 --- a/library/PolyVoxCore/include/Raycast.inl +++ b/library/PolyVoxCore/include/Raycast.inl @@ -139,7 +139,7 @@ namespace PolyVox if(m_sampVolume.getVoxel().getDensity() > VoxelType::getThreshold()) { m_result.foundIntersection = true; - m_result.intersectionVoxel = Vector3DInt16(i,j,k); + m_result.intersectionVoxel = Vector3DInt32(i,j,k); return; } @@ -172,6 +172,6 @@ namespace PolyVox //Didn't hit anything m_result.foundIntersection = false; - m_result.intersectionVoxel = Vector3DInt16(0,0,0); + m_result.intersectionVoxel = Vector3DInt32(0,0,0); } } \ No newline at end of file