diff options
author | Giles Bathgate <gilesbathgate@gmail.com> | 2011-04-09 05:59:23 (GMT) |
---|---|---|
committer | Giles Bathgate <gilesbathgate@gmail.com> | 2011-04-09 05:59:23 (GMT) |
commit | a262be69f7420f01427df29f50db4c1f3d304dfc (patch) | |
tree | bbfe0a43a87cf56b7b14bda20fae8e7e3f7e681c /src/CGAL_renderer.h | |
parent | ae8cda73a83d8b4e55eb87eb1df225d3d62e1320 (diff) |
A bit of encapsulation can't hurt.
Diffstat (limited to 'src/CGAL_renderer.h')
-rw-r--r-- | src/CGAL_renderer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CGAL_renderer.h b/src/CGAL_renderer.h index a2b3b72..b5709b8 100644 --- a/src/CGAL_renderer.h +++ b/src/CGAL_renderer.h @@ -58,7 +58,6 @@ public: CGAL_NEF3_UNMARKED_FACET_COLOR, NUM_COLORS }; - CGAL::Color colors[NUM_COLORS]; void draw(bool showedges) const { if(this->style == SNC_BOUNDARY) { @@ -94,7 +93,8 @@ public: assert(color_index < Polyhedron::NUM_COLORS); this->colors[color_index] = CGAL::Color(r,g,b); } - +private: + CGAL::Color colors[NUM_COLORS]; }; // Polyhedron |