Subject: CGAL users discussion list
List archive
- From: "sinan mutlu" <>
- To:
- Subject: Re: [cgal-discuss] Straight_Skeleton_2 Null pointer
- Date: Tue, 11 Dec 2007 16:02:09 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=HfXM2dEzE5sEiVnJwhk8T0oQQ6CbXcWIwO8TTkPI5zQ6aOeCoRER96BXMnhPdODLXUARYRa6Y8TNC+eFbsK843J/cI97qmD+JPTYvrjcJUXnk2gf+5Vofb2PpKCiq6Rf9fvWjR7NKw/j8lV2Ox2vTLp402ptV9mYd88ERia724Y=
Hi Fernando,
Thank you very much for your help. I haven't tried it yet but it seems to work correctly.
Best Regards.
Sinan Mutlu
On 11/12/2007,
Fernando Cacciola <> wrote:
Hi Sinan,
The polygon in data/example.poly has the wrong orientation.
I didn't notice before because the demo program corrects the orientation of
polygons on load, but I forgotten it did that.
If you add the following to your example program, right after the example is
loaded:
CGAL::Orientation o = CGAL::orientation_2(all_pts, all_pts+(int)vertexCount);
if ( o != CGAL::COUNTERCLOCKWISE )
std::reverse(all_pts,all_pts+(int)vertexCount);
it will work.
Best
Fernando Cacciola
GeometryFactory
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- Straight_Skeleton_2 Null pointer, sinan mutlu, 12/10/2007
- Re: [cgal-discuss] Straight_Skeleton_2 Null pointer, Fernando Cacciola, 12/10/2007
- Re: [cgal-discuss] Straight_Skeleton_2 Null pointer, Fernando Cacciola, 12/10/2007
- Re: [cgal-discuss] Straight_Skeleton_2 Null pointer, sinan mutlu, 12/11/2007
- Re: [cgal-discuss] Straight_Skeleton_2 Null pointer, Fernando Cacciola, 12/11/2007
- Re: [cgal-discuss] Straight_Skeleton_2 Null pointer, sinan mutlu, 12/11/2007
- Re: [cgal-discuss] Straight_Skeleton_2 Null pointer, Fernando Cacciola, 12/11/2007
- Re: [cgal-discuss] Straight_Skeleton_2 Null pointer, sinan mutlu, 12/11/2007
Archive powered by MHonArc 2.6.16.