Skip to content

Commit

Permalink
Merge pull request #87 from philipbelesky/suggestions/output-stats
Browse files Browse the repository at this point in the history
Output volume stats as clean ints so they can be more easily used dow…
  • Loading branch information
mariuszhermansdorfer committed Aug 30, 2021
2 parents 5605b04 + 2a635e4 commit 06b19d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions SandWorm/Analytics/CutFill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,12 @@ private Color GetColorForCutFill(int cutFillValue, double gradientRange)
}
}

stats.Add($"Cut: {System.Math.Round(_cut * 0.001)} cubic centimeters");
stats.Add($"Fill: {System.Math.Round(_fill * 0.001)} cubic centimeters");
stats.Add($"Cut/Fill Balance: {System.Math.Round((_cut + _fill) * 0.001)} cubic centimeters");
stats.Add($"Cut Volume, in cubic centimeters:");
stats.Add(System.Math.Round(_cut * 0.001).ToString());
stats.Add($"Fill Volume, in cubic centimeters:");
stats.Add(System.Math.Round(_fill * 0.001).ToString());
stats.Add($"Cut/Fill Balance, in cubic centimeters:");
stats.Add(System.Math.Round((_cut + _fill) * 0.001).ToString());
return vertexColors;
}

Expand Down

0 comments on commit 06b19d6

Please sign in to comment.