This is a question regarding the library cgal and geomviewer, which can be found at http://www.cgal.org/
Here is the problem:
1. I want to be able to display line segments with geomviewer programtically. I am able to peform triangulation and output the faces to the geomviewer. However, I cannot fathom how to stream in a series of lines.
2. Currently the triangulation is streamed as follows:
3. However I want to simply included a series of line segments, however I can only do one at a time. with for example:Code:CGAL::Geomview_stream gv(CGAL::Bbox_3(-Xbox/2.0, -Ybox/2.0, -Zbox/2.0, Xbox/2.0, Ybox/2.0, Zbox/2.0)); gv.set_line_width(4); gv.set_trace(true); gv.set_bg_color(CGAL::Color(0, 200, 200)); gv.clear(); gv << T; sleep(50);
4. How do I create the necessary structures such that I can send a whole series of line sections off and are displayed.Code:Point3 myPointsource(0.0,0.0,0.0); Point3 myPointtarget(Normal_base*5,Normal_base*5,Normal_base*5); Line3 mySegmentNormal(myPointsource,myPointtarget); //gv.set_wired(true); gv << mySegmentNormal;