Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: [cgal-discuss] Triangulation problem

Subject: CGAL users discussion list

List archive

Re: Re: [cgal-discuss] Triangulation problem


Chronological Thread 
  • From: <>
  • To:
  • Subject: Re: Re: [cgal-discuss] Triangulation problem
  • Date: Thu, 16 Jul 2009 23:15:50 +0200 (CEST)

still nothing... I rewrite it along Your advices >

for (Triangulation::Finite_facets_iterator fit = T.finite_facets_begin(); fit
!= T.finite_facets_end(); ++fit)
{
Cell_handle cell = fit->first;

Point point1 =
cell->vertex(Triangulation::vertex_triple_index(fit->second, 2))->point();
Point point2 =
cell->vertex(Triangulation::vertex_triple_index(fit->second, 1))->point();
Point point3 =
cell->vertex(Triangulation::vertex_triple_index(fit->second, 0))->point();

triangles.push_back(Vec3(point1.x(), point1.y(), point1.z()));
triangles.push_back(Vec3(point2.x(), point2.y(), point2.z()));
triangles.push_back(Vec3(point3.x(), point3.y(), point3.z()));
}
I hope this code makes sense. It still works for one, and dont for other one.
I
spent some time in manual, but I cant find anything useful for me. I believe
what Im trying to do is basic operation for everyone who wants to render
result
of CGAL triangulation, so there must be somebody with solution for me ;-)



Archive powered by MHonArc 2.6.16.

Top of Page