Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Problem on visulizing a triangulation using geomview

Subject: CGAL users discussion list

List archive

[cgal-discuss] Problem on visulizing a triangulation using geomview


Chronological Thread 
  • From: <>
  • To:
  • Subject: [cgal-discuss] Problem on visulizing a triangulation using geomview
  • Date: Wed, 28 Apr 2010 19:53:12 +0200 (CEST)

Hi,

I'd like to visualize a 2D uniform triangulation using geomview, my
definitions are as follow:

typedef CGAL::Cartesian<double> K;

typedef K::Point_2 Point;

typedef K::Segment_2 Segment;

typedef K::Triangle_2 Triangle;


typedef CGAL::Triangulation_2 <K> Triangulation;


And i build my uniform triangulation as follow:



short m_size_u = 49;
short m_size_v = 68;

int u,v,i,j;

Face_handle f,g;

for (u = 0; u<m_size_u; u = u+1)

{

for (v = 0 ;v< m_size_v; v= v+1)

{

i = u+1;

j = v+1;

f = T.create_face(T.insert(Point (u,v)),T.insert(Point (u+1,v)),T.insert(Point
(u,v+1)) );

gv<<T.segment(f,0);

gv<<T.segment(f,1);

gv<<T.segment(f,2);

gv<<T.triangle(f);

g =
T.create_face(T.insert(Point(i,j)),T.insert(Point(i-1,j)),T.insert(Point(i,j-1))
);

gv<<T.segment(g,0);

gv<<T.segment(g,1);

gv<<T.segment(g,2);

gv<<T.triangle(g);

}

}

The problem is when I launch my application in a terminal
(./test_triangulation) Geomview stops visualizing suddenly and the error
message is:
write problem in the pipe while sending data to geomview.

Does somebody know why this error (I think that the number of triangles is not
big enough) happens and how to avoid it!

Best regards!
Youssef ALJ


  • [cgal-discuss] Problem on visulizing a triangulation using geomview, youssef_alj, 04/28/2010

Archive powered by MHonArc 2.6.16.

Top of Page