From 8619b36b5f97ed50efbb7cf704b5e0e4d504df91 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 15 Jan 2011 23:37:43 +0000 Subject: [PATCH] Small tweaks to Raycast --- library/PolyVoxCore/include/Raycast.h | 3 +++ library/PolyVoxCore/include/Raycast.inl | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/library/PolyVoxCore/include/Raycast.h b/library/PolyVoxCore/include/Raycast.h index dc2c9f98..09f74692 100644 --- a/library/PolyVoxCore/include/Raycast.h +++ b/library/PolyVoxCore/include/Raycast.h @@ -38,6 +38,9 @@ namespace PolyVox public: Raycast(Volume* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirection, RaycastResult& result); + void setStart(const Vector3DFloat& v3dStart); + void setDirection(const Vector3DFloat& v3dDirection); + void execute(); RaycastResult& m_result; diff --git a/library/PolyVoxCore/include/Raycast.inl b/library/PolyVoxCore/include/Raycast.inl index 437053ca..8817b330 100644 --- a/library/PolyVoxCore/include/Raycast.inl +++ b/library/PolyVoxCore/include/Raycast.inl @@ -32,6 +32,18 @@ namespace PolyVox { } + template + void Raycast::setStart(const Vector3DFloat& v3dStart) + { + m_v3dStart = v3dStart; + } + + template + void Raycast::setDirection(const Vector3DFloat& v3dDirection) + { + m_v3dDirection = v3dDirection; + } + template void Raycast::execute(void) {