Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] CGAL::Intersection de deux polygon problèm
- Date: Mon, 6 Nov 2017 10:45:03 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:9XMouhPz5lQlrAtlnA8l6mtUPXoX/o7sNwtQ0KIMzox0K/T/rarrMEGX3/hxlliBBdydsK0UzbeO+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6a8TWO6msZFRz7cAZ0Pe/oAZX6jsKt1un09YeATR9PgW/3Wr54JQ6qrAjX/u0Rm4plNu5x5RbOp3ZUYfV4zGh0IkiC3ly0sty0+4Ri9DgWvvYJ+MtJUKG8dKM9G+8LRA86Onw4sZW4/SLIShGCsyMR
If you have used CGAL::Exact_predicates_exact_constructions_kernel, it might be that your polygons are not oriented counter-clockwise.
It is hard to tell without having the text of the assertion failing.
Sebastien.
On 11/04/2017 11:07 PM, salim78 wrote:
bonsoir,
actuellement je travail sur un mini-projet, et j'utilise la bibliothèque
CGAL en vue d'obtenir l'intersection et le différence entre deux polygones
Polygon_2;
quand je fait appel à la fonction
CGAL::intersection(poly1,poly2,std::back_inserter(polyI) ); une erreur
s'affiche :
CGAL:: précondition_violation
CGAL:: préconditions_exception
mais quand j'utilise des coordonnées simples des point comme:
Point points[] = { Point(0,0), Point(2,0), Point(2,2),Point(0,2)};
Point points2[] = { Point(1,1), Point(3,1), Point(3,3), Point(0,3)};
Polygon_2 poly1(points, points+4);
Polygon_2 poly2(points2, points2+4);
la fonction donne des résultats juste
svp, si quelqu'un m'aider je suis vraiment bloqué,
cordialement.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] CGAL::Intersection de deux polygon problèm, salim78, 11/04/2017
- Re: [cgal-discuss] CGAL::Intersection de deux polygon problèm, Sebastien Loriot (GeometryFactory), 11/06/2017
Archive powered by MHonArc 2.6.18.