Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Create a simple 2D skeleton

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Create a simple 2D skeleton


Chronological Thread 
  • From: kinju <>
  • To:
  • Subject: [cgal-discuss] Re: Create a simple 2D skeleton
  • Date: Sun, 18 Jul 2010 00:28:31 -0700 (PDT)


Hi,

I tried with that :

Polygon outer;
outer.push_back(0.0, 0.0);
outer.push_back(0.0, 10.0);
outer.push_back(10.0, 10.0);
outer.push_back(10.0, 0.0);
outer.push_back(0.0, 0.0);

Polygon_with_holes poly(outer);

Polygon hole;
hole.push_back(2.5, 2.5);
hole.push_back(7.5, 2.5);
hole.push_back(7.5, 7.5);
hole.push_back(2.5, 7.5);
hole.push_back(2.5, 2.5);
poly.add_hole(hole);

The exterior is in counter clockwise, the interior in clockwise, but I still
have the same result :(

Have I missed something ?

Thanks,

Aurélien
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Create-a-simple-2D-skeleton-tp2292307p2292910.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page