Remove unused member in DefaultSupportTree
Also fix for loop that is copying int vector in each iteration
This commit is contained in:
parent
f72984f18e
commit
47a824d131
2 changed files with 1 additions and 3 deletions
|
@ -372,7 +372,6 @@ void DefaultSupportTree::add_pinheads()
|
|||
PtIndices filtered_indices;
|
||||
filtered_indices.reserve(aliases.size());
|
||||
m_iheads.reserve(aliases.size());
|
||||
m_iheadless.reserve(aliases.size());
|
||||
for(auto& a : aliases) {
|
||||
// Here we keep only the front point of the cluster.
|
||||
filtered_indices.emplace_back(a.front());
|
||||
|
@ -602,7 +601,7 @@ void DefaultSupportTree::routing_to_ground()
|
|||
// sidepoints with the cluster centroid (which is a ground pillar)
|
||||
// or a nearby pillar if the centroid is unreachable.
|
||||
size_t ci = 0;
|
||||
for (auto cl : m_pillar_clusters) {
|
||||
for (const std::vector<unsigned> &cl : m_pillar_clusters) {
|
||||
m_thr();
|
||||
|
||||
auto cidx = cl_centroids[ci++];
|
||||
|
|
|
@ -62,7 +62,6 @@ class DefaultSupportTree {
|
|||
|
||||
PtIndices m_iheads; // support points with pinhead
|
||||
PtIndices m_iheads_onmodel;
|
||||
PtIndices m_iheadless; // headless support points
|
||||
|
||||
std::map<unsigned, AABBMesh::hit_result> m_head_to_ground_scans;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue