Skip to content

Commit

Permalink
[fuseCut] minor: constness
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan authored Aug 14, 2023
1 parent 81fa605 commit f5d97c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aliceVision/fuseCut/DelaunayGraphCut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ void DelaunayGraphCut::addPointsFromSfM(const Point3d hexah[8], const StaticVect
void DelaunayGraphCut::addPointsFromCameraCenters(const StaticVector<int>& cams, float minDist)
{
int addedPoints = 0;
float minDist2 = minDist * minDist;
const float minDist2 = minDist * minDist;
Tree kdTree(_verticesCoords);
for(int camid = 0; camid < cams.size(); camid++)
{
Expand Down Expand Up @@ -846,7 +846,7 @@ void DelaunayGraphCut::addPointsToPreventSingularities(const Point3d voxel[8], f
fcg = (voxel[3] + voxel[2] + voxel[6] + voxel[7]) / 4.0f;
extrPts[5] = fcg + (fcg - vcg) / 10.0f;
int addedPoints = 0;
float minDist2 = minDist * minDist;
const float minDist2 = minDist * minDist;
Tree kdTree(_verticesCoords);
for(int i = 0; i < 6; i++)
{
Expand Down

0 comments on commit f5d97c4

Please sign in to comment.