Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Find the perimeter of a shell with no volume

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Find the perimeter of a shell with no volume


Chronological Thread 
  • From: Giles Bathgate <>
  • To:
  • Subject: Re: [cgal-discuss] Find the perimeter of a shell with no volume
  • Date: Mon, 20 Jun 2011 11:27:38 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=aaF/El65x1GKZ5LajfP3GFv7SGJu9tqVYOHOTG6k3z8ZXEkBBL8HVujrv+GLY9aFIh OPzAdXu3+uPrLNqoJIgRu+4TzLBD2X9azEiKEVo3iZz7NlmqRPzlyv1+BVP59dGN1dzP qFw9RkGrVlCbJA1p4YQNc+9aTs9uBM0G61D4Y=

On 20 June 2011 07:56, Sebastien Loriot (GeometryFactory)
<>
wrote:
> Note that we do not provide support for older version of CGAL.
>
> However, you can try replacing h < h->twin() by
> &(*h) < &(*h->twin()).
>
> Since two halfedges are opposite along the same edge, this
> is a way to count edges.

Thanks for your help so far...

I appreciate that you don't support older versions but I am having to
because for one of the target platforms, I compile against the latest
CGAL version in Ubuntu Natty which is 3.6.1. I don't expect you to
support this old version, I am happy to work around the problem
myself.

All I was after was a bit of detail about what the code means, are we
comparing the memory addresses of the two const handles, or does this
code see if the number of halfedges in h, is less than the number of
halfedges in h->twin()

How might I fix the error on line 37

mult.insert(std::make_pair(h,0)).first->second+=1;

Thanks for being patient.

Regards

Giles



Archive powered by MHonArc 2.6.16.

Top of Page