From a262be69f7420f01427df29f50db4c1f3d304dfc Mon Sep 17 00:00:00 2001 From: Giles Bathgate Date: Sat, 9 Apr 2011 06:59:23 +0100 Subject: A bit of encapsulation can't hurt. 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 -- cgit v0.10.1