Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Mesh generation question

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Mesh generation question


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Mesh generation question
  • Date: Thu, 26 Jan 2012 10:43:45 +0100
  • Organization: GeometryFactory

Le mercredi 25 janvier 2012 13:29:02 Ram a écrit :
> Hi Laurent,
>
> I think this loop is the problem:
>
> for ( typename C3t3::Cells_in_complex_iterator cit =
> c3t3.cells_in_complex_begin();
> cit != c3t3.cells_in_complex_end(); ++cit){
> gv << 4 << " "
> << V[cit->vertex(0)] << " "
> << V[cit->vertex(1)] << " "
> << V[cit->vertex(2)] << " "
> << V[cit->vertex(3)] << " "
> << "\n"; // without color.
> // << 4 << drand48() << drand48() << drand48() << 1.0; // random
> color.
> }
>
> which is called from:
>
>
> template < class GT, class TDS >
> void
> show_triangulation_edges(std::ofstream &gv, const Triangulation_3<GT,TDS>
> &T, const C3t3& c3t3)
>
> The initial cells are all "0 0 0 0" -- what am i doing wrong?

How have you filled the map named "V"? If you forgot some vertices, that
would
explain all the "0" you get.

If you can post the full code, that would be easier to help you.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.16.

Top of Page