summaryrefslogtreecommitdiffhomepage
path: root/Opcode/OPC_AABBTree.cpp
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 16:00:07 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 16:00:07 +0000
commit78e29455c5cb4acce769498a5a32be6a3c6085b4 (patch)
treec71549e69f306cfc302d4c76b48cf99afd7f2f76 /Opcode/OPC_AABBTree.cpp
parente33e19d0587146859d48a134ec9fd94e7b7ba5cd (diff)
downloadstarshatter-78e29455c5cb4acce769498a5a32be6a3c6085b4.zip
starshatter-78e29455c5cb4acce769498a5a32be6a3c6085b4.tar.gz
starshatter-78e29455c5cb4acce769498a5a32be6a3c6085b4.tar.bz2
Fixing up faulty references to class "Point" to "IcePoint"
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--)
{