Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Edge/Facet Iterator

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Edge/Facet Iterator


Chronological Thread 
  • From: Dennis Endt <>
  • To:
  • Subject: Re: [cgal-discuss] Edge/Facet Iterator
  • Date: Tue, 14 Oct 2008 22:43:10 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=BwG8z1UrTPRNTVVJh5vQ+eiZx/DnwdnQFxU47g9bAwJvGp/bixCT/BJggvh3XfFm1c yOzZ4RhE3l/tdNdiJMwY3j7m68LmhtxSexI+suujqu6V2Y+9auVgQv86lT+9aUA2Byvo d4gjH1NVMk94aVKwDLNg5kYw2ja3Jy5KtlLxA=

Hi Andreas,

I read the manual for another time and it became clear how I can get a
triangle of a facet. I think I understand how you define the geometry
and how I can work with them.

But I miss the edges of a triangle. Can I only read out the points?

I tried to compare the Point combination of the triangle counter
clockwise with them of the edges I obtained from the
finite_edge_iterator. But they didn`t match.

Is there an easy way to get the edges of a triangle?

Best
Dennis

Andreas Fabri schrieb:
> Hi Dennis,
>
> I think instead of just giving you the code sniplet that does the job,
> we tell you how to search in the manual.
>
> You looked up in the Delaunay triangulation reference manual page for
> some functionality. Fine. But as the class is derived from the class
> Triangulation_3
> (and that is marked in the beginning of the man page of
> Delaunay_triangulation_3)
> some of its functionality is inherited from the base class, and hence
> documented in the base class. And there you will find
>
>
> Triangle t.triangle ( const Cell_handle c, int i)
> Returns the triangle formed by the three vertices of facet
> (c,i). The triangle is oriented so that its normal points to the
> inside of cell c.
> Precondition: t.dimension() greater or equal 2 and i in {0,1,2,3}
> in dimension 3, i = 3 in dimension 2, and the facet is finite.
>
> Triangle t.triangle ( Facet f) Same as the previous method for
> facet f.
> Precondition: t.dimension() greater or equal 2 and the facet is
> finite.
>
> andreas
>
>




Archive powered by MHonArc 2.6.16.

Top of Page