LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2008, 12:40 PM   #1
disruptive
Member
 
Registered: Dec 2005
Posts: 76

Rep: Reputation: 15
CGAL and Geomview


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:
Code:

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);
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:
Code:
Point3 myPointsource(0.0,0.0,0.0);
      Point3 myPointtarget(Normal_base[0]*5,Normal_base[1]*5,Normal_base[2]*5);
      Line3 mySegmentNormal(myPointsource,myPointtarget);
      //gv.set_wired(true);
      gv << mySegmentNormal;
4. How do I create the necessary structures such that I can send a whole series of line sections off and are displayed.

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration