Subject: CGAL users discussion list
List archive
- From: christi4n <>
- To:
- Subject: [cgal-discuss] Segment Voronoi Diagram
- Date: Tue, 2 Jul 2019 05:54:28 -0500 (CDT)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:1S56rhVL6yCwYOgYPzjBePc8YGLV8LGtZVwlr6E/grcLSJyIuqrYYxaEt8tkgFKBZ4jH8fUM07OQ7/m6HzZQqs3c+DBaKdoQDkZD0Z1X1yUbQ+e9QXXhK/DrayFoVO9jb3RCu0+BDE5OBczlbEfTqHDhpRQbGxH4KBYnbr+tQt2agMu4zf299IPOaAtUmjW9falyLBKrpgnNq8Uam4RvJrsvxhfTvHdFeOtayG1oKFmOmxrw+tq88IRs/ihNpv4t7dJMXbn/c68lUbFWETMqPnwv6sb2rxfDVwyP5nUdUmUSjBVFBhXO4Q/5UJnsrCb0r/Jx1yaGM8L4S7A0Qimi4LxwSBD0kicHNiU2/3/Rh8dtka9UuhOhpxh4w47JfIGYMed1c63Bcd8GQ2dKQ8BcXDFDDIyhdYsCF+QPM+ZGoYf+ulUBogexCwa3CePzyDJEmmP60bEm3+g/FwzNwQwuH8gJsHTRtNj6KKcSUfq0zKnT0TXDbvxb2THg44XPbh8tu/OMXa92ccre0kQvEwLFjkuOpoD/IjyayP0Avm6G5ORuUuKvjnQoqwB3ojW3wMcjkJLGiZkRyl/a7yl23IE1Jdi+RUVmYtCkCINduzyeOoZyWM8vTWJltDw5x7AHo5K2fSkHxZI6zBDFcfOHaZKH4hf7WeaRPzh4gHVldaq5hxu960SgzPfzWdKv31ZOsCVJiMXDtncI1xDL68iHTOVy/lu51DqS0w3e7vtILE43mKbBKJMsw6Q8m5sSvEjbGy/5gkT2jKuYdkU+/eio7vzqban8qp+eKo90jA7+P78qmsy+H+Q3LBICUHWF9uikzr3s4VX5QKlWjv0xiqTWrJ/aKt4fpqKgHgBV050j5AqiDze9y9QVhmIHLVJAeBKflYflIVDOIPbiDfe+mVugijlrx+qVdoHmV57CJ3yGnLb6dqtm8GZdzhAyxJZR/cF6ELYEdfnzQE7qqN2ECFdtOEq23uDoINF8yI5YVW/ZUfzRC7/brVLdvrFnGOKLfoJA4G+hechg3ObniDoCoXFYZbOgjMkTaW61WPhrcR3APCjcx+wZGGJPhTIQCeznjFrbDGxVOzC0Vqg24jx9A4WjX96aF9KdxYeZ1SL+JaV4I2VPC1SCC3DtJteAWukBLi6fcJRs
Hello,
I am trying to construct the Voronoi diagram of segments via the Voronoi
diagram adaptor. My final goal is to iterate over the faces and the edges of
the Voronoi diagram.
I would like to insert the sites from
/cgal/Segment_Delaunay_graph_2/examples/Segment_Delaunay_graph_2/data/sites2.cin,
but I always get the error "'INSERT_IS_NOT_SUPPORTED' was not declared in
this scope."
This is my code:
typedef CGAL::Quotient<CGAL::MP_Float> ENT;
typedef CGAL::Simple_cartesian<double> CK;
typedef CGAL::Simple_cartesian<ENT> EK;
typedef
CGAL::Segment_Delaunay_graph_filtered_traits_2<CK,CGAL::Field_with_sqrt_tag,
EK, CGAL::Field_tag> Gt;
typedef CGAL::Segment_Delaunay_graph_2<Gt> SDG2;
typedef CGAL::Segment_Delaunay_graph_adaptation_traits_2<SDG2> TRAIT;
typedef
CGAL::Segment_Delaunay_graph_caching_degeneracy_removal_policy_2<SDG2>
POLICY;
typedef CGAL::Voronoi_diagram_2<SDG2,TRAIT,POLICY> SEG_VD;
typedef TRAIT::Site_2 Site_2;
typedef TRAIT::Point_2 Point_2;
My main:
std::ifstream
ifs("cgal/Segment_Delaunay_graph_2/examples/Segment_Delaunay_graph_2/data/sites2.cin");
assert( ifs );
SEG_VD SEG;
Site_2 site;
std::vector<Site_2> sites;
while ( ifs >> site ) { sites.push_back( site ); }
ifs.close();
SEG.insert(sites[0]);
The problem seems to be the last line (ie SEG.insert(sites[0]);). Changing
it to SEG.instert(sites[0], CGAL::Tag_true()) produes other errors.
I would be very pleased if someone could help me. To me it seems that I
missed something rather obvious as there are similar examples on this forum
that are supposed to be woking.
Thanks in advance.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Segment Voronoi Diagram, christi4n, 07/02/2019
Archive powered by MHonArc 2.6.18.