Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Duplicate points in Arrangment

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Duplicate points in Arrangment


Chronological Thread 
  • From: Winnie Hellmann <>
  • To:
  • Subject: Re: [cgal-discuss] Duplicate points in Arrangment
  • Date: Sun, 05 Feb 2012 15:53:39 +0100

> std::set<Point> unique_points;
> if (unique_points.size() != L.size())
Thank you, that would indeed be a solution. But it would require that I
insert each vertex at least twice (in the arangement and the set) -
which would be a lot of extra space for doing this simple check.

However I would use this solution in case there is no other (more
elegant) way to prevent the arrangement from having duplicate vertices.

--
PGP key: http://www.winniehell.de/0xA8FE4F09.pub.asc

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.16.

Top of Page