diff --git a/include/openmc/plot.h b/include/openmc/plot.h index c4476af41b..7e85996de4 100644 --- a/include/openmc/plot.h +++ b/include/openmc/plot.h @@ -312,8 +312,8 @@ private: Position camera_position_; // where camera is Position look_at_; // point camera is centered looking at Direction up_ {0.0, 0.0, 1.0}; // which way is up - bool wireframe_; // draw wireframe around ID boundaries (material or cell - // based on color_by) + bool wireframe_ {true}; // draw wireframe around ID boundaries (material or + // cell based on color_by) /* The horizontal thickness, if using an orthographic projection. * If set to zero, we assume using a perspective projection. diff --git a/tests/regression_tests/plot_projections/geometry.xml b/tests/regression_tests/plot_projections/geometry.xml index 9821876444..a648dfe92f 100644 --- a/tests/regression_tests/plot_projections/geometry.xml +++ b/tests/regression_tests/plot_projections/geometry.xml @@ -4,7 +4,7 @@ - + diff --git a/tests/regression_tests/plot_projections/plots.xml b/tests/regression_tests/plot_projections/plots.xml index 2d22c8865f..b25f177b06 100644 --- a/tests/regression_tests/plot_projections/plots.xml +++ b/tests/regression_tests/plot_projections/plots.xml @@ -13,11 +13,12 @@ 0. 0. 0. - 20. 20. 20. + 10. 10. 0. 25 25 200 200 90 + example1 @@ -25,6 +26,27 @@ 20. 20. 20. 200 200 240 240 240 + example2.png + + + + 0. 0. 0. + 0. 10.0 20. + 200 200 + 110 240 240 + example3.png + + + + 0. 0. 0. + 10. 10. 10. + 25 25 + 200 200 + 25.0 + orthographic_example1 + + + diff --git a/tests/regression_tests/plot_projections/results_true.dat b/tests/regression_tests/plot_projections/results_true.dat index 45e097f62b..004b752eb8 100644 --- a/tests/regression_tests/plot_projections/results_true.dat +++ b/tests/regression_tests/plot_projections/results_true.dat @@ -1 +1 @@ -8231bc2d60bee9df464fbf3c5b2ea611dcd0f10232f6a9b04f58fc5226716acb31580578f74d194f8ab2df1848ea1556621bf997e1d1562d5eb8471def2a5f24 \ No newline at end of file +5fdff140078cd45efe7a507feeb06c00fa735820157a9a5a066905468b1052640c3b81065f968f6280c05eef7e9e4305a631e0e0aa2e467c9bd9d4f1a097ab09 \ No newline at end of file diff --git a/tests/regression_tests/plot_projections/test.py b/tests/regression_tests/plot_projections/test.py index 2e1f4cd8df..972e0e0d71 100644 --- a/tests/regression_tests/plot_projections/test.py +++ b/tests/regression_tests/plot_projections/test.py @@ -56,5 +56,5 @@ class PlotTestHarness(TestHarness): def test_plot(): - harness = PlotTestHarness(('projection1.png', 'projection2.png', 'projection3.png')) + harness = PlotTestHarness(('plot_1.png', 'example1.png', 'example3.png', 'orthographic_example1.png')) harness.main()