Subject: CGAL users discussion list
List archive
- From: Stephen Wong <>
- To: "" <>
- Subject: RE: [cgal-discuss] Problems with Vector_3
- Date: Thu, 24 Jan 2008 10:47:59 -0800
- Accept-language: en-US, en-CA
- Acceptlanguage: en-US, en-CA
Hi there,
If you are using an integer kernel (Gmpz) you will only be able to store
integers. I would believe that is the source of the problem - if it is,
change the number type to a floating-point type or Gmpq.
Cheers,
Stephen
-----Original Message-----
From: Jens K. Becker
[mailto:]
Sent: January-24-08 10:32 AM
To:
Subject: [cgal-discuss] Problems with Vector_3
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
--
Dr. J.K. Becker
University of Tuebingen - Institute for Geoscience
Sigwartst. 10 - 72076 Tuebingen (Germany)
Tel.: ++49 7071 29 73139 Fax: +49 7071 5059
web: http://www.jkbecker.de
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- Re: Re: [cgal-discuss] how to do that?, bendaoud_med, 01/22/2008
- Re: Re: [cgal-discuss] how to do that?, Sebastien . Loriot, 01/22/2008
- Re:Re: Re: [cgal-discuss] how to do that?, hds, 01/23/2008
- Re:Re: Re: [cgal-discuss] how to do that?, Sebastien . Loriot, 01/23/2008
- <Possible follow-up(s)>
- Re: Re:Re: Re: [cgal-discuss] how to do that?, bendaoud_med, 01/23/2008
- Problems with Vector_3, Jens K. Becker, 01/24/2008
- RE: [cgal-discuss] Problems with Vector_3, Stephen Wong, 01/24/2008
- Re: [cgal-discuss] Problems with Vector_3, Andreas Fabri, 01/24/2008
- Re: [cgal-discuss] Problems with Vector_3, Jens K. Becker, 01/24/2008
- Problems with Vector_3, Jens K. Becker, 01/24/2008
Archive powered by MHonArc 2.6.16.