Raycast class now returns Vector3DInt32 instead of Vector3DInt16.
This commit is contained in:
parent
529ed89bdb
commit
ff12264744
@ -38,7 +38,7 @@ namespace PolyVox
|
|||||||
///Indicates whether an intersection was found
|
///Indicates whether an intersection was found
|
||||||
bool foundIntersection;
|
bool foundIntersection;
|
||||||
///If an intersection was found then this field holds the intersecting voxel, otherwise it is undefined.
|
///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.
|
/// The Raycast class can be used to find the fist filled voxel along a given path.
|
||||||
|
@ -139,7 +139,7 @@ namespace PolyVox
|
|||||||
if(m_sampVolume.getVoxel().getDensity() > VoxelType::getThreshold())
|
if(m_sampVolume.getVoxel().getDensity() > VoxelType::getThreshold())
|
||||||
{
|
{
|
||||||
m_result.foundIntersection = true;
|
m_result.foundIntersection = true;
|
||||||
m_result.intersectionVoxel = Vector3DInt16(i,j,k);
|
m_result.intersectionVoxel = Vector3DInt32(i,j,k);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,6 +172,6 @@ namespace PolyVox
|
|||||||
|
|
||||||
//Didn't hit anything
|
//Didn't hit anything
|
||||||
m_result.foundIntersection = false;
|
m_result.foundIntersection = false;
|
||||||
m_result.intersectionVoxel = Vector3DInt16(0,0,0);
|
m_result.intersectionVoxel = Vector3DInt32(0,0,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user