Subject: CGAL users discussion list
List archive
- From:
- To:
- Subject: Re: [cgal-discuss] Polygon and Labeled X-Monotone Curves
- Date: Thu, 13 Mar 2008 00:42:54 +0200
I wasn't able to reproduce the problem. Could you please send to me a
small program that does it.
Thanks, Efi.
Quoting
:
Hi,
Im trying to use labeled x-monotone curves (defined in Minkowski Sums package) to keep some information on my polygon's edges.
I have no problem to manipulate Labeled_curve, but when I construct a General_Polygon_2 with these Labeled Curves, my label info dissapear...
Is there anything I can do to keep info with each edge of a polygon ?
Extract of my test file :
// Create labeled curves with segments or circular arcs
[ ]
std::cout << labelCurveTst3.label().component() << std::endl;
// Displays 2 --> OK
// Create my polygon from labeled curves
Labeled_curve_2 labelcurves2[] = { labelCurveTst1, labelCurveTst2, labelCurveTst3, labelCurveTst4 };
General_polygon_2 pgn(labelcurves2, labelcurves2+4);
Curve_const_iterator k;
Labeled_curve_2 labelCurve1;
k = pgn.curves_begin();
k++;
k++;
labelCurve1 = *k;
std::cout << labelCurve1.label().component() << std::endl;
// Displays 0 --> pb !?
[ ]
Best Regards,
Gaetan
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- Polygon and Labeled X-Monotone Curves, gaetan . thiebaud, 03/06/2008
- Re: [cgal-discuss] Polygon and Labeled X-Monotone Curves, efif, 03/12/2008
Archive powered by MHonArc 2.6.16.