Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] About .locate function

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] About .locate function


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] About .locate function
  • Date: Mon, 28 Oct 2013 10:44:49 +0100
  • Organization: GeometryFactory

On 10/28/2013 10:43 AM, Sebastien Loriot (GeometryFactory) wrote:
On 10/28/2013 10:40 AM, Laurent Rineau (CGAL/GeometryFactory) wrote:
Le mardi 22 octobre 2013 01:13:56 ffmm3 a écrit :

> If I want determine the relative position between the point(0.7,0.3)
and the

> triangle with vertices(-1,0)(1,0)(0,1) precisely, what should I do?

You would need a kernel with an exact arithmetic, like
CGAL::Exact_predicates_exact_construction_kernel

http://doc.cgal.org/latest/Kernel_23/classCGAL_1_1Exact__predicates__exact__constructions__kernel.html



... and you need to construct 0.7 as 7 / 10 and 0.3 as 3 / 10


I meant

typedef CGAL::Exact_predicates_exact_construction_kernel::FT FT;

FT(7) / FT(10) and FT(3) / FT(10)



Sebastien.

--

Laurent Rineau, PhD

R&D Engineer at GeometryFactory http://www.geometryfactory.com/

Release Manager of the CGAL Project http://www.cgal.org/






Archive powered by MHonArc 2.6.18.

Top of Page