Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Straight Skeleton original code

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Straight Skeleton original code


Chronological Thread 
  • From: "sinan mutlu" <>
  • To:
  • Subject: Re: [cgal-discuss] Straight Skeleton original code
  • Date: Fri, 23 Nov 2007 15:02:49 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BGRxw5pZ27HwqCUEh0eci2ip0MAfUkPx74/WOEHGvFvZ6ZHJhiOgaszbZ+JvLrhlcjKPiAd+t09VpfdbIxL9IU5PurykQP19GOo9IvD9tpKQXGdxli3CZDO40VJPnbTxs73HpiHH2KTdvu3gLo/8hccISJSwYi3C8Ce8Y0IHG+Y=

Hi,

I have changed the code of straight_skeleton_2 example a bit.
    Point_2 all_pts[8];
    all_pts[0] = Point_2(-1*20,-1*20);
    all_pts[1] = Point_2(0*20,-12*20);
    all_pts[2] = Point_2(1*20,-1*20);
    all_pts[3] = Point_2(12*20,0*20);
    all_pts[4] = Point_2(1*20,1*20);
    all_pts[5] = Point_2(0*20,12*20);
    all_pts[6] = Point_2(-1*20,1*20);
    all_pts[7] = Point_2(-12*20,0*20);
 
   std::vector<Point_2> star(all_pts,all_pts+8);
   SsBuilder ssb ;

   ssb.enter_contour(all_pts,all_pts+8);
   // Construct the skeleton
   ss = ssb.construct_skeleton();

In the line  "ss = ssb.construct_skeleton();" it is waiting nearly two minutes. I am doing something wrong, or is the algorithm really works very slowly.

Best Regards,

Sinan Mutlu




Archive powered by MHonArc 2.6.16.

Top of Page