Small tweaks to Raycast
This commit is contained in:
parent
359c9ec343
commit
8619b36b5f
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user