Skip to content

Commit

Permalink
FIX: Clean unassociated cliusters adds the colors as well
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienGilliard committed Sep 20, 2024
1 parent d229d02 commit 42f0bd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/diffCheck/segmentation/DFSegmentation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ namespace diffCheck::segmentation
{
completed_segment->Points.push_back(point);
completed_segment->Normals.push_back(cluster->Normals[std::distance(cluster->Points.begin(), std::find(cluster->Points.begin(), cluster->Points.end(), point))]);
if (cluster->GetNumColors() > 0)
{
completed_segment->Colors.push_back(cluster->Colors[std::distance(cluster->Points.begin(), std::find(cluster->Points.begin(), cluster->Points.end(), point))]);
}
}
}
std::vector<int> indicesToRemove;
Expand Down

0 comments on commit 42f0bd2

Please sign in to comment.