Skip to Content.
Sympa Menu

cgal-discuss - Straight_Skeleton_2

Subject: CGAL users discussion list

List archive

Straight_Skeleton_2


Chronological Thread 
  • From: "sinan mutlu" <>
  • To:
  • Subject: Straight_Skeleton_2
  • Date: Fri, 23 Nov 2007 15:13:02 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:mime-version:content-type; b=xk2SI1fABsp81R2ChW3bkjpRoVLg29H4ds1COUpdMLAoCek2GODwKoGFccqJfCWFHD+ixWM6EEZGjyB7jpqPjnh8LKAbwADLJoBJG5VlZX60j8uGuyS4nRycR/GlKF7Hog3/lUyzCoUYuAZGMCMOYdBIQYpJURYE6iX6Pr2vK6I=

On 23/11/2007, sinan mutlu <> wrote:
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 skeleto
   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