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: Olivier Devillers <>
  • To:
  • Subject: Re: [cgal-discuss] About .locate function
  • Date: Mon, 28 Oct 2013 13:19:00 +0100

Le 10/22/13 10:13 AM, 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?


A said, you can use a fully exact kernel.

A cheaper solution is to use the Inexact constructions exact predicates kernel
with a number type that can represent your input.

e.g. if instead of
point(0.7,0.3) and the
triangle with vertices(-1,0)(1,0)(0,1) 
you have
point(7,3) and the
triangle with vertices(-10,0)(10,0)(0,10) 
everything will work perfectly.







--
Olivier Devillers, chercheur à

PNG image




Archive powered by MHonArc 2.6.18.

Top of Page