Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] polygon
- Date: Tue, 23 Jan 2018 14:16:23 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:9knyGRdhJY2TguLyrw0pmovMlGMj4u6mDksu8pMizoh2WeGdxcS+bR7h7PlgxGXEQZ/co6odzbaO6ua4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahfL9+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM37X/ZisJwgqxYrhyuqRNwzIzIb4+aL/d+YqDQcMkGSWZdUMtcVSpMCZ68YYsVCOoBOP5Vo4fgqVQQthSxHxKsBP/uyjBWgH/9wKs00+M7EQHH2wwgA88FvHDVotrrM6cSVP66zLXSzTTDb/1Zwyvy6JTPchA7ofCAWLx8etfWxEk0EwPFiU+QqY3iPzOJzOgNtmyb4vFvVeKqkWEnqgVxriKzyccrj4nEn4QYwU3K+yV+xYY6P9y4SEhjbNG4H5tfrSWaO5FxQsM4TGFlvjsxxL4euZOjYiQG1JAqywTcZvGHaYSE/wzvWeWLLTtlh39pZqqzihSx/ES61OHxWci53ExXoidBnNTArHIA2hzV58OaUPVy5F2h1iyK1w3L6uFLP0Q0la3DJp4k2LEwl54TvV3NHy/shEn6laGWelgn9+S28ejnbbLmppiTN49wlA7yKLghmsu6AeggMwgOWXaU+fik2bH94UH0RK9Gg/42n6XDrZzWO8cWqrSkDwJWzIov8xO/AC2n0NQck3kHNlVFeBefgojyP1HOJ+r4Dfa4g1SwijtrwvTGM6buApXINHfDkbPhcaxh5E5bzQo/1cpf6I5MCrEdPPLzXVf8u8DXDhAjNwy42vvoCNRm1owCRGKPGbSZPbjJsV6I4+IvO/ODaJUUuDb7Mfgl5uThgWU3mV8HLuGV2s4cZ3m8W/hnOE6EemHEg9EbEG5MsBBtYvbtjQjIajNZbm2uXq86rhU8EoOhEc+DaY2qhbGdxjaVF5ZKYXpXSxrERWzscJ+FXOtKbSa6LcpokzhCXr+kHdxynSqyvRP3nuI0ZtHf/TcV4Mq6hYpFotbLnBR3zgRaSsGU0mWDVWZxxzpaSDo/3aQ5qkt4mA7ajfpIxsdAHNkW3MtnFx8gPMeFneN/AtH2HAnGe4XREQv0cpCdGTg0C+kJ7ZoObkJ6QYvwixnC22+1GedQmeXbXto79aXT23W3LMF4mS7L
The precondition is giving you the reason:
Explanation: The polygon has a wrong orientation.
Polygon_2 has a member function reverse_orientation() (that does not appear in the doc for some reason).
Sebastien.
On 12/19/2017 06:35 PM, xoru wrote:
I always get :
P = { Outer boundary = [ 4 vertices: (0 0) (1 0) (1 1) (0 1) ]
1 holes:
Hole #1 = [ 4 vertices: (0.4 0.4) (0.6 0.4) (0.6 0.6) (0.4 0.6) ]
}
CGAL warning: check violation!
Expression : valid_orientation
File : /usr/include/CGAL/Boolean_set_operations_2/Gps_polygon_validation.h
Line : 778
Explanation: The polygon has a wrong orientation.
Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html
terminate called after throwing an instance of 'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: is_valid_unknown_polygon(p, t)
File: /usr/include/CGAL/General_polygon_set_on_surface_2.h
Line: 48
Aborted
How union 2 polygons with holes or not?
When I read from svg path I get any orientation. Is possible to change orientation automaticaly?
P have 2 holes. Q not.
Anybody can help me and write completly example?
- Re: [cgal-discuss] polygon, Sebastien Loriot (GeometryFactory), 01/23/2018
Archive powered by MHonArc 2.6.18.