Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Straight_Skeleton_2 Null pointer

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Straight_Skeleton_2 Null pointer


Chronological Thread 
  • From: "Fernando Cacciola" <>
  • To: <>
  • Subject: Re: [cgal-discuss] Straight_Skeleton_2 Null pointer
  • Date: Mon, 10 Dec 2007 13:56:35 -0300
  • Organization: Geometry Factory

Hi sinan,

Hi,

I am reading vertices from a file and then I try to construct a straight
Skeleton using the polygon
which is constructed by vertices I read from the file. But in the line "ss =
ssb.construct_skeleton();" ss becomes "NULL".

The result of "construct_skeleton" is NULL whenever the algorithm failed to construct the skeleton.
That can happen if:

1.You are not using a kernel with exact predicates.

2.The input polgon is not simple or has the wrong orientation (CCW for outer contours, CW for inner contours)

3.There is a bug, as the code returns NULL if the generated skeleton is detected to be invalid.

HTH

Fernando Cacciola
GeometryFactory





Archive powered by MHonArc 2.6.16.

Top of Page