Subject: CGAL users discussion list
List archive
- From: Lionel <>
- To:
- Subject: Re: Re: [cgal-discuss] Triangulation 2D - remove_constraint
- Date: Fri, 28 Aug 2009 15:38:17 +0200 (CEST)
Hello Andreas,
Thanks for your answer.
I only created a Constrained_Delaunay_triangulation_2 object. So I guess that
I
can not use functions of a Triangulation Plus object (i did not read
documentation about it) ?
I use an object with this type and like this (for example):
typedef CGAL::Constrained_Delaunay_triangulation_2<K, TDS, Itag> CDT;
CDT m_cdt;
bool c = m_cdt.is_constrained(CDT::Edge(fh, noVertex));
if (c) m_cdt.remove_constrained_edge(fh, noVertex);
Maybe the problem comes from the constraint insertion ? :
for (VectorPoint::iterator itv = vline.begin() ; (itv+1) != vline.end();
++itv)
{
vha = m_cdt.insert((*itv).point());
vhb = m_cdt.insert((*(itv+1)).point());
m_cdt.insert_constraint(vha, vhb);
}
I do like this because I need (vha, vhb) to traverse the polygon later.
I did many tries before posting using several iterators (all_edges,
finite_edges, etc) to search and test the constraint and several containers
(list or set) to store the edges to delete, etc. And I did not find something
working ; only my workaround...
Lionel
Here are the full type definitions that I use :
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Triangulation_vertex_base_with_info_2<MesInfosVertex, K> VbInfo;
typedef CGAL::Constrained_triangulation_face_base_2<K> Fb_Base;
typedef CGAL::Triangulation_face_base_with_info_2<MesInfosFace,K,Fb_Base>
FbInfo;
typedef CGAL::Triangulation_data_structure_2<VbInfo,FbInfo> TDS;
typedef CGAL::Exact_intersections_tag Itag;
typedef CGAL::Constrained_Delaunay_triangulation_2<K, TDS, Itag> CDT;
- [cgal-discuss] Triangulation 2D - remove_constraint, Lionel, 08/28/2009
- Re: [cgal-discuss] Triangulation 2D - remove_constraint, Andreas Fabri, 08/28/2009
- Re: Re: [cgal-discuss] Triangulation 2D - remove_constraint, Lionel, 08/28/2009
- Re: [cgal-discuss] Triangulation 2D - remove_constraint, Andreas Fabri, 08/28/2009
- Re: Re: [cgal-discuss] Triangulation 2D - remove_constraint, Lionel, 08/28/2009
- Re: [cgal-discuss] Triangulation 2D - remove_constraint, Andreas Fabri, 08/28/2009
- Re: Re: [cgal-discuss] Triangulation 2D - remove_constraint, Lionel, 08/28/2009
- Re: [cgal-discuss] Triangulation 2D - remove_constraint, Andreas Fabri, 08/28/2009
Archive powered by MHonArc 2.6.16.