Subject: CGAL users discussion list
List archive
- From: Stefan Schirra <>
- To:
- Subject: Re: [cgal-discuss] Gmpz constructed from non-integer double value
- Date: Thu, 03 Jun 2010 10:41:18 +0200
Jianfei Liu wrote:
I am reading a simple .off file and traslate it from polyhedron to Nef
polyhedron, but failed with an error:Gmpz constructed from non-integer double
value.
The error message says it all: 0.256 is not an integer, whereas Gmpz is an integer-type. You cannot convert arbitrary floats to this type. Only floats representing integral values can be converted.
I noticed somebody says it is a bug for older CGAL, however it seems still
existing for the newest version 3.6.
OFF
4 4 0
0 0 0.256
1 0 0
0 1 0
0 0 1
3 0 2 1
3 0 1 3 3 0 3 2
3 1 2 3
The problem is caused by 0.256 in the above file.
Multiply your coordinates by 1000 ;-)
-- Stefan
- [cgal-discuss] unique function, cecilia, 06/01/2010
- <Possible follow-up(s)>
- [cgal-discuss] unique function, cecilia, 06/01/2010
- [cgal-discuss] Gmpz constructed from non-integer double value, Jianfei Liu, 06/02/2010
- Re: [cgal-discuss] Gmpz constructed from non-integer double value, Stefan Schirra, 06/03/2010
- Re: [cgal-discuss] Gmpz constructed from non-integer double value, Jianfei Liu, 06/03/2010
- Re: [cgal-discuss] Gmpz constructed from non-integer double value, Martin Baeker, 06/03/2010
- [cgal-discuss] Re: Gmpz constructed from non-integer double value, Jianfei Liu, 06/03/2010
- Re: [cgal-discuss] Gmpz constructed from non-integer double value, Martin Baeker, 06/03/2010
- Re: [cgal-discuss] Gmpz constructed from non-integer double value, Jianfei Liu, 06/03/2010
- Re: [cgal-discuss] Gmpz constructed from non-integer double value, Stefan Schirra, 06/03/2010
- [cgal-discuss] Gmpz constructed from non-integer double value, Jianfei Liu, 06/02/2010
Archive powered by MHonArc 2.6.16.