From 3c3c3fb28248a5b92c5490341724d9ec864688c3 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 2 Nov 2018 22:07:51 -0500 Subject: [PATCH] Renaming rdm_color function. --- include/openmc/plot.h | 2 +- src/plot.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/openmc/plot.h b/include/openmc/plot.h index f633394a6..fb379ae46 100644 --- a/include/openmc/plot.h +++ b/include/openmc/plot.h @@ -197,7 +197,7 @@ void create_voxel(Plot pl); //! Create a randomly generated RGB color //! \return RGBColor with random value -RGBColor rdm_color(); +RGBColor random_color(); } // namespace openmc diff --git a/src/plot.cpp b/src/plot.cpp index 903f3280b..38c0eb194 100644 --- a/src/plot.cpp +++ b/src/plot.cpp @@ -368,14 +368,14 @@ Plot::set_default_colors(pugi::xml_node plot_node) color_by_ = PlotColorBy::cells; colors_.resize(n_cells); for (int i = 0; i < n_cells; i++) { - colors_[i] = rdm_color(); + colors_[i] = random_color(); } } else if("material" == pl_color_by) { color_by_ = PlotColorBy::mats; colors_.resize(n_materials); for (int i = 0; i < materials.size(); i++) { - colors_[i] = rdm_color(); + colors_[i] = random_color(); } } else { std::stringstream err_msg; @@ -973,7 +973,7 @@ voxel_finalize(hid_t dspace, hid_t dset, hid_t memspace) H5Sclose(memspace); } -RGBColor rdm_color() { +RGBColor random_color() { RGBColor rgb; rgb[RED] = int(prn()*255); rgb[GREEN] = int(prn()*255);