Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Inserting constraints in Constrained_triangulation_plus_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] Inserting constraints in Constrained_triangulation_plus_2


Chronological Thread 
  • From: marin <>
  • To:
  • Subject: [cgal-discuss] Inserting constraints in Constrained_triangulation_plus_2
  • Date: Wed, 7 Nov 2018 03:39:04 -0600 (CST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:SPKXuB9oGmBWqv9uRHKM819IXTAuvvDOBiVQ1KB40uscTK2v8tzYMVDF4r011RmVBdqds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55/ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRhHohikZNDA37W7YhdB/gq9AvBKspQBzz5LIbI2JKvZzeL7Wc9MARWpGW8ZcTylBDZmmb4sOCeoKIOFVr4znqFsUrBu+AxOgBOfyyj9LgX/2w6w63Pg6HAHJ2QwvBdMOsHDOoNrpM6cSVPm4wa/VxjvNaPNW3C3y6InOch05p/GDR6l/ftHVyUYxDQ/KklKQqYnjMjiI1eoNq3CW4/dkWO+rkWIqpQJ8riKsy8otkIXEh4MYx1bZ/itj2ok1P8e3SEtjbN6kDpRQsyaaOpNwQs4tWW1ovjw1xaYdtp6/YicG0ogoxxnaa/CfcoiI5AzsVPqJLDtlgH9ofKizihix/ES6yeDxV9O43VdLoyZdl9nDrHEN1xjd6sidTft9+1+s2TOV2ADJ6+FEJ1o4la7GK54ixb4wiJsTvljYEy/5nUX5lq6WdkE+9ue07OTnZ63qpoWAOI9slgH+LqMul9SjDuQ3KAcOW3GX9vm91L344UL5Xa5KjuYtn6nCsJHaINwbqbSjDw9U1IYj8Re/AC283NQWh3lUZG5CLRmIhoysN1DVK+3jFt++hU6tmXFl3aPoJLrkV5DENHnF2OPkdKx87QhY1Qk009FUz51RA7AFZvn0Xxmi55TjEhYlPlnskK7cA9Jn29ZGADPdMuqiKKrX9GSwyKcqKuiIapUSvW+kefcg7v/qy3Q+nA1GJPX77d4scHm9W89eDQCBe3O124UOFG4Lukw1S+m40ATfAw4WXG67WucH3h9+CI+iCt6eFIbxxrqI1i2/E9tdYWUUU10=

Hello,

I have two questions about inserting constraints in
Constrained_triangulation_plus_2 triangulation.

I'm using triangulation defined like this
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K> Gt;
typedef CGAL::Triangulation_vertex_base_with_info_2<FaceInfo2, Gt>
Vbb;
typedef CGAL::Triangulation_hierarchy_vertex_base_2<Vbb> Vb;
typedef CGAL::Constrained_triangulation_face_base_2<Gt> Fb_base;
typedef CGAL::Triangulation_face_base_with_info_2<FaceInfo2, Gt,
Fb_base>
Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> TDS;
typedef CGAL::Exact_predicates_tag Itag;
typedef CGAL::Constrained_Delaunay_triangulation_2<Gt, TDS, Itag>
Delaunay_base;
typedef CGAL::Triangulation_hierarchy_2<Delaunay_base> Triangulation;
typedef CGAL::Constrained_triangulation_plus_2<Triangulation>
Delaunay;

1. insert_constraint sometimes throws an exception
I am using function Constraint_id
CGAL::Constrained_triangulation_plus_2<
Tr >::insert_constraint( PointIterator first, PointIterator last, bool close
= false )

- it throws exception every time if I try to insert the same polyline
twice.
- sometimes it throws exception inserting not already inserted
constraints.

Since Constrained_triangulation_plus_2 should support any polylines
layout
as constraints including those intersecting each other, please I'm wondering
what are preconditions for the Insert_constraint function in order to work
without exception?

2. In reference manual I've found the function Insert_constraints (plural)
that allows inserting many polyline constraints at once using optimized
algorithm with spatial indexes but I haven't found any examples how to use
it. Please if there are some examples available I would be very grateful.
insert_constraints ( ConstraintIterator first, ConstraintIterator last )

Thank you very much for answers.

Best regards,
Marin



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.18.

Top of Page