Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Members of the class CGAL::Point_d

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Members of the class CGAL::Point_d


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] Members of the class CGAL::Point_d
  • Date: Fri, 27 Apr 2012 15:49:30 +0200
  • Organization: GeometryFactory

luchia
<>
writes:

> Hallo,
>
> I think I've a pretty silly question, thus sorry in advance.
>
> I would like to work with precise aritmetic, so I defined the following
> kernel:
>
> typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;

This is not a d-dimensional kernel, but a 23 dimensional one. You will
need to specify a d-dimensional kernel with an exact number type,
because there is no equivalent of Epeck for Kernel_d. e.g.

typedef Cartesian_d<CGAL::Gmpq> K;
typedef K::Point_d Point;

>
> Afterward, I've the following declaration:
>
> typedef CGAL::Point_d<Kernel> Point_d;
>
> The question is: Why when I declare:
>
> Point_d p;
>
> the variable "p" has no one of the methods that a Point_d should have?
> Similar problem with:
>
> typedef CGAL::Vector_d<Kernel> Vector_d;
>
> Thanks in advance,
>
> Luca



Archive powered by MHonArc 2.6.16.

Top of Page