Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problems with Vector_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problems with Vector_3


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Problems with Vector_3
  • Date: Thu, 24 Jan 2008 19:55:00 +0100


Hello,

It seems you use a homogeneous kernel.
0.1 read into a RT=Gmpz becomes 0

andreas

Jens K. Becker wrote:
Hi all,

I have a problem with Vector_3:

Apparently I can not initialize a Vector_3 (CGAL3.3.1, GMP and boost support)
with doubles that are between 1 and -1 (1>x<-1, 0 works though).
This is an example:
std::cout<<Vector_3(0.1,0.9,0.1) results in the output 0 0 0 1
std::cout<<Vector_3(1,1,1) results in the output 1 1 1 1

With an earlier version of CGAL that worked fine, though I am not sure if it is
CGAl or my linux version (I changed it recently).

I have no idea what to do anymore, any ideas anybody?

Thanks for your help,

Jens




Archive powered by MHonArc 2.6.16.

Top of Page