Subject: CGAL users discussion list
List archive
- 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
- 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.