Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] possible bug in CGAL::intersection

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] possible bug in CGAL::intersection


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] possible bug in CGAL::intersection
  • Date: Thu, 04 Oct 2007 23:57:08 +0200


a écrit :
i found a possible bug in CGAL::intersection when i try to intersect two
objects of type Triangle_2. in the case where the intersection should be a
triangle something doesn't work properly, the result is that i the function
returns no object.

i'm using CGAL version 3.1, but as far as i can see from the list of changes
this problem hasn't been resolved in version 3.3

Please try 3.3.1. The changes list does not always go in every detail.

i use microsoft visual c++ compiler.

the following code should return a Triangle_2 when i try intersecting the
triangles {(0,0),(1,0),(0,1)} and {(0.1,0.1),(1.1,0.1),(0.1,1)}.



#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/intersections.h>
#include <CGAL/Polygon_2.h>

#include <fstream>

struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};

What does it give for Exact_predicates_exact_constructions_kernel ?

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page