Small tweaks to Raycast

This commit is contained in:
David Williams 2011-01-15 23:37:43 +00:00
parent 359c9ec343
commit 8619b36b5f
2 changed files with 15 additions and 0 deletions

View File

@ -38,6 +38,9 @@ namespace PolyVox
public:
Raycast(Volume<VoxelType>* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirection, RaycastResult& result);
void setStart(const Vector3DFloat& v3dStart);
void setDirection(const Vector3DFloat& v3dDirection);
void execute();
RaycastResult& m_result;

View File

@ -32,6 +32,18 @@ namespace PolyVox
{
}
template <typename VoxelType>
void Raycast<VoxelType>::setStart(const Vector3DFloat& v3dStart)
{
m_v3dStart = v3dStart;
}
template <typename VoxelType>
void Raycast<VoxelType>::setDirection(const Vector3DFloat& v3dDirection)
{
m_v3dDirection = v3dDirection;
}
template <typename VoxelType>
void Raycast<VoxelType>::execute(void)
{