Skip to content

Commit

Permalink
Be sure that unsigned fields are displayed with positive values
Browse files Browse the repository at this point in the history
  • Loading branch information
nmellado committed Dec 22, 2023
1 parent eb589f4 commit 6d9b4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drawingPasses/poncaFitField.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ struct FitField : public BaseFitField {
float dist = fit.potential({i,j});
if (std::abs(dist)> maxVal) maxVal = std::abs(dist);

b[0] = dist; // set pixel value
b[3] = ColorMap::SCALAR_FIELD; // set field type
b[0] = fit.isSigned() ? dist : std::abs(dist); // set pixel value
b[3] = ColorMap::SCALAR_FIELD; // set field type
}
}
}
Expand Down

0 comments on commit 6d9b4a7

Please sign in to comment.