diff --git a/modules/gfx/tests/test_ent_pov_export.cc b/modules/gfx/tests/test_ent_pov_export.cc index 0c44aa27370010a78849d9110f41ff856a9e6c48..450051dc73c9ffade08fa78b50e8cafdf111a13e 100644 --- a/modules/gfx/tests/test_ent_pov_export.cc +++ b/modules/gfx/tests/test_ent_pov_export.cc @@ -72,6 +72,12 @@ bool compare_files(const String& test, const String& gold_standard) return true; } +// The GfxView uses a std::map for efficient access to atoms. This however has +// implications for the POV export. In general we can't assume that the atoms +// are written in any particular order. That's why we first filter out all +// cylinder and sphere objects and sort them before we compare them against +// the gold standard. For the trace-based renderers this is no problem as we +// always get cylinders and spheres sorted form N- to C-term. bool compare_sphere_cyl_entries(const String& test, const String& gold_standard) {