Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] optimal_convex_partition_2()

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] optimal_convex_partition_2()


Chronological Thread 
  • From: tfern90 <>
  • To:
  • Subject: Re: [cgal-discuss] optimal_convex_partition_2()
  • Date: Tue, 3 Feb 2015 06:04:03 -0800 (PST)


Hello, i am french

here is the code

while(getline(lire,s))
{
Polygon_2 polygon;
if(s.find("Region")!=0)continue;
getline(lire,s);
std::stringstream ss;
ss<<s;
ss>>n;
for(int i = 0 ; i < n ; i++)
{
std::stringstream ss1;
getline(lire,s);
ss1<<s;
ss1>>x>>y;
   lpc.push_back(K::Point_2(x,y));
llp.push_back(K::Point_2(x,y));
polygon.push_back(K::Point_2(x,y));
}
CGAL::optimal_convex_partition_2(polygon.vertices_begin(),
                                    polygon.vertices_end(),
                                    std::back_inserter(partition_polys),
                                    partition);
lc.push_back(llp);
llp.clear();
    }

the debugger is stopping here:    Matrix<Partition_opt_cvx_edge> edges(polygon.size(), polygon.size());

in partition_optimal_convex_2h 



2015-02-03 11:06 GMT+01:00 Sebastien Loriot (GeometryFactory) [via cgal-discuss] <[hidden email]>:
On 02/02/2015 04:28 PM, tfern90 wrote:

> Hello,
>
> here is my polygon:
> <http://cgal-discuss.949826.n4.nabble.com/file/n4660381/Capture.jpg>
>
> it as 16 vertices, ans it's a simple polygon.
>
> CGAL::optimal_convex_partition_2(..) does not function correctly.
>
>
Without a minimal example showing a pb, we cannot really help.

Sebastien

>
>
> --
> View this message in context: http://cgal-discuss.949826.n4.nabble.com/optimal-convex-partition-2-tp4660381.html
> Sent from the cgal-discuss mailing list archive at Nabble.com.
>


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





If you reply to this email, your message will be added to the discussion below:
http://cgal-discuss.949826.n4.nabble.com/optimal-convex-partition-2-tp4660381p4660386.html
To unsubscribe from optimal_convex_partition_2(), click here.
NAML



View this message in context: Re: optimal_convex_partition_2()
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page