Skip to Content.
Sympa Menu

cgal-discuss - Colors in GeomView

Subject: CGAL users discussion list

List archive

Colors in GeomView


Chronological Thread 
  • From:
  • To:
  • Subject: Colors in GeomView
  • Date: Fri, 28 Mar 2008 13:30:29 +0100

I'm trying to color an alpha shape which I have visualized with the
Geomview_stream class:

CGAL::Geomview_stream gv(CGAL::Bbox_3(0,0,0, 2, 2, 2));
gv.clear();
gv.set_line_width(5);
gv.set_trace(false);
gv.set_bg_color(CGAL::Color(255, 255, 255)); //white
gv.set_vertex_color(CGAL::Color(255, 0, 0));
gv.set_edge_color(CGAL::Color(0, 255, 0));
gv.set_face_color(CGAL::Color(0, 0, 255));
gv << as;

The thing is that only the background is colored white. The simplicities do
not change color.

What am I doing wrong?

Thanks in advance.

Regards,
Henrik


  • Colors in GeomView, henrik . sterner, 03/28/2008

Archive powered by MHonArc 2.6.16.

Top of Page