summaryrefslogtreecommitdiffhomepage
path: root/Opcode/OPC_AABBTree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Opcode/OPC_AABBTree.cpp')
-rw-r--r--Opcode/OPC_AABBTree.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Opcode/OPC_AABBTree.cpp b/Opcode/OPC_AABBTree.cpp
index 5738f9b..e7ac631 100644
--- a/Opcode/OPC_AABBTree.cpp
+++ b/Opcode/OPC_AABBTree.cpp
@@ -164,7 +164,7 @@ bool AABBTreeNode::Subdivide(AABBTreeBuilder* builder)
if(builder->mSettings.mRules & SPLIT_LARGEST_AXIS)
{
// Find the largest axis to split along
- Point Extents; mBV.GetExtents(Extents); // Box extents
+ IcePoint Extents; mBV.GetExtents(Extents); // Box extents
udword Axis = Extents.LargestAxis(); // Index of largest axis
// Split along the axis
@@ -176,7 +176,7 @@ bool AABBTreeNode::Subdivide(AABBTreeBuilder* builder)
else if(builder->mSettings.mRules & SPLIT_SPLATTER_POINTS)
{
// Compute the means
- Point Means(0.0f, 0.0f, 0.0f);
+ IcePoint Means(0.0f, 0.0f, 0.0f);
for(udword i=0;i<mNbPrimitives;i++)
{
udword Index = mNodePrimitives[i];
@@ -187,7 +187,7 @@ bool AABBTreeNode::Subdivide(AABBTreeBuilder* builder)
Means/=float(mNbPrimitives);
// Compute variances
- Point Vars(0.0f, 0.0f, 0.0f);
+ IcePoint Vars(0.0f, 0.0f, 0.0f);
for(udword i=0;i<mNbPrimitives;i++)
{
udword Index = mNodePrimitives[i];
@@ -234,7 +234,7 @@ bool AABBTreeNode::Subdivide(AABBTreeBuilder* builder)
// Test largest, then middle, then smallest axis...
// Sort axis
- Point Extents; mBV.GetExtents(Extents); // Box extents
+ IcePoint Extents; mBV.GetExtents(Extents); // Box extents
udword SortedAxis[] = { 0, 1, 2 };
float* Keys = (float*)&Extents.x;
for(udword j=0;j<3;j++)
@@ -519,8 +519,8 @@ bool AABBTree::Refit2(AABBTreeBuilder* builder)
ASSERT(mPool);
// Bottom-up update
- Point Min,Max;
- Point Min_,Max_;
+ IcePoint Min,Max;
+ IcePoint Min_,Max_;
udword Index = mTotalNbNodes;
while(Index--)
{