Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2002-11-01 16:54:50 +0300
committerKent Mein <mein@cs.umn.edu>2002-11-01 16:54:50 +0300
commit92a0254c8a98336c71d17eca31757216fb511d1a (patch)
treea32ca1dd41e9530cb091402ce58cf2d6a1c9fc90 /intern/decimation
parent94706ed592ceba2039461194fa30532572047e56 (diff)
Ok since I didn't hear anything I committed the indexing changes I made
to these two files. Basically change edge_set.begin() to &edge_set[0] etc... mein@cs.umn.edu
Diffstat (limited to 'intern/decimation')
-rw-r--r--intern/decimation/intern/LOD_QSDecimator.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/decimation/intern/LOD_QSDecimator.cpp b/intern/decimation/intern/LOD_QSDecimator.cpp
index 6620fa15ad3..bf08de8e9de 100644
--- a/intern/decimation/intern/LOD_QSDecimator.cpp
+++ b/intern/decimation/intern/LOD_QSDecimator.cpp
@@ -183,9 +183,9 @@ CollapseEdge(
} else {
// the edge could not be collapsed at the moment - so
// we adjust it's priority and add it back to the heap.
- m_heap->Remove(edges.begin(),0);
+ m_heap->Remove(&edges[0],0);
edges[heap_top].HeapKey() = - MT_INFINITY;
- m_heap->Insert(edges.begin(),heap_top);
+ m_heap->Insert(&edges[0],heap_top);
}
//clear all the temporary buffers
@@ -274,7 +274,7 @@ BuildHeap(
heap_vector.push_back(i);
}
- m_heap->MakeHeap(edge_set.begin());
+ m_heap->MakeHeap(&edge_set[0]);
return true;
}
@@ -304,7 +304,7 @@ UpdateHeap(
// inser the new elements into the heap
for (; edge_it != end_it; ++edge_it) {
- m_heap->Insert(edge_set.begin(),*edge_it);
+ m_heap->Insert(&edge_set[0],*edge_it);
}
@@ -315,7 +315,7 @@ UpdateHeap(
for (; edge_it != end_it; ++edge_it) {
LOD_Edge &e = edge_set[*edge_it];
- m_heap->Remove(edge_set.begin(),e.HeapPos());
+ m_heap->Remove(&edge_set[0],e.HeapPos());
e.HeapPos() = 0xffffffff;