summaryrefslogtreecommitdiff
path: root/src/CGAL_renderer.h
diff options
context:
space:
mode:
authorGiles Bathgate <gilesbathgate@gmail.com>2011-04-09 05:42:00 (GMT)
committerGiles Bathgate <gilesbathgate@gmail.com>2011-04-09 05:42:00 (GMT)
commite02eb751b136e656e25518c41bd8572e20d46997 (patch)
treebd015bf72af119e3b47c1803fe0e7171c002907f /src/CGAL_renderer.h
parent2ddbc3f1bc86253f2cfd09a9ec1757bd3656242c (diff)
Move setColor into Polyhedron class which is a much more sensible place.
Diffstat (limited to 'src/CGAL_renderer.h')
-rw-r--r--src/CGAL_renderer.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/CGAL_renderer.h b/src/CGAL_renderer.h
index f8b41bd..a2b3b72 100644
--- a/src/CGAL_renderer.h
+++ b/src/CGAL_renderer.h
@@ -88,20 +88,15 @@ public:
CGAL::Color c = f->mark() ? colors[CGAL_NEF3_UNMARKED_FACET_COLOR] : colors[CGAL_NEF3_MARKED_FACET_COLOR];
return c;
}
-};
-template<typename Nef_polyhedron>
-class Nef3_Converter : public CGAL::OGL::Nef3_Converter<Nef_polyhedron>
-{
-public:
- static void setColor(Polyhedron* p, Polyhedron::RenderColor color_index,
+ void setColor(Polyhedron::RenderColor color_index,
unsigned char r, unsigned char g, unsigned char b) {
assert(color_index < Polyhedron::NUM_COLORS);
- p->colors[color_index] = CGAL::Color(r,g,b);
+ this->colors[color_index] = CGAL::Color(r,g,b);
}
-}; // Nef3_Converter
+}; // Polyhedron
} // namespace OGL
contact: Jan Huwald // Impressum