CGAL ERROR GMP in run program

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

CGAL ERROR GMP in run program

mahdavi
hi  all,
 I write a program ,this program successfully run in windows ,but run in linux suse 10.2  follow error occur:terminate called
//////////////////////////////////////////////////////////////////////////////////////
after throwing an instance of 'CGAL::Assertion_exception'
  what():  CGAL ERROR: assertion violation!
Expr: is_finite(d)
File: /usr/local/include/CGAL/GMP/Gmpq_type.h
Line: 125
///////////////////////////////////////////////////////////////////////////////////////
please help in run this program in linux,
thanks and best regard.
Reply | Threaded
Open this post in threaded view
|

Re: CGAL ERROR GMP in run program

Sylvain Pion
Administrator
Le 30/01/10 07:01, mahdavi a écrit :

>
> hi  all,
>   I write a program ,this program successfully run in windows ,but run in
> linux suse 10.2  follow error occur:terminate called
> //////////////////////////////////////////////////////////////////////////////////////
> after throwing an instance of 'CGAL::Assertion_exception'
>    what():  CGAL ERROR: assertion violation!
> Expr: is_finite(d)
> File: /usr/local/include/CGAL/GMP/Gmpq_type.h
> Line: 125
> ///////////////////////////////////////////////////////////////////////////////////////
> please help in run this program in linux,

This error means that you are constructing a number type
from a double whose value is not finite, so either a NaN
or infinity.  Maybe your program is constructing points
with such value for the coordinates ?

Without seeing more of your program, nobody can tell
anything more precise.

--
Sylvain Pion
INRIA Sophia Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss

Reply | Threaded
Open this post in threaded view
|

Re: CGAL ERROR GMP in run program

mahdavi
hi
thanks for your help ,but this program run in windows ,error is in follow line that run  in windows ,
//////////////////////////////////////////////
Triangulation  T2;
 T2.insert (Pointch1.begin(), Pointch1.end());
////////////////////////////////////////////////////
pointch1 is contain :
39.4015 4.5695 inf47.8142 nan -inf40.199 6.522 inf41.512 6.515 inf43.5868 5.0648 inf39.0578 -9.8492 inf41.1508 -9.8562 inf41.1535 -3.6265 inf43.559 2.242 inf38.285 -3.455 inf38.4488 2.4298 inf47.0762 nan -inf39.303 2.955 inf38.112 -1.678 inf40.1798 7.2958 inf39.9698 6.4248 inf55.117 -1.888 inf41.533 -12.497 inf53.768 -4.381 inf53.5528 -10.3422 inf40.5515 -12.7535 inf47.6715 -10.4685 inf53.586 -9.538 inf43.1605 1.7475 inf44.2215 13.8875 inf44.6128 10.6148 inf51.6205 3.5405 inf53.2955 6.0295 inf43.386 6.622 inf41.897 6.745 inf45.5808 4.4628
//////////////////////////////////////////////////////////////
please tell me ,how delete nan or infinite point from pointch1.
thanks,