Subject: CGAL users discussion list
List archive
- From: tfern90 <>
- To:
- Subject: Re: [cgal-discuss] optimal_convex_partition_2()
- Date: Tue, 3 Feb 2015 06:15:07 -0800 (PST)
#include "gtest/gtest.h"
#include "XGO_Triangulation2D.H"
#include "XGO_Polyedre3D.H"
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Constrained_Delaunay_triangulation_2.h>
#include <CGAL/Partition_traits_2.h>
#include <CGAL/polygon_function_objects.h>
#include <CGAL/partition_2.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Partition_traits_2<K> Traits;
typedef Traits::Polygon_2 Polygon_2;
typedef CGAL::Triangulation_vertex_base_2<K> Vb;
typedef CGAL::Constrained_triangulation_face_base_2<K> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb,Fb> TDS;
typedef CGAL::Exact_predicates_tag Itag;
typedef CGAL::Constrained_Delaunay_triangulation_2<K, TDS, Itag> Delaunay;
2015-02-03 15:11 GMT+01:00 Sebastien Loriot (GeometryFactory) [via cgal-discuss] <[hidden email]>:
Could you please add the missing includes, typedefs and input so that
I can directly compile it and run it?
Thanks,
Sebastien.
On 02/03/2015 03:04 PM, tfern90 wrote:
>
> 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]
> </user/SendEmail.jtp?type=node&node=4660392&i=0>>:
>
> 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
> <http://cgal-discuss.949826.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: optimal_convex_partition_2()
> <http://cgal-discuss.949826.n4.nabble.com/optimal-convex-partition-2-tp4660381p4660392.html>
> Sent from the cgal-discuss mailing list archive
> <http://cgal-discuss.949826.n4.nabble.com/> 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-tp4660381p4660393.html
View this message in context: Re: optimal_convex_partition_2()
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/02/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/13/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/03/2015
- [cgal-discuss] CAGL::To_double, Yuetong Luo, 02/04/2015
- Re: [cgal-discuss] CAGL::To_double, Sebastien Loriot (GeometryFactory), 02/04/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/03/2015
Archive powered by MHonArc 2.6.18.