Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Error when calling linear_least_squares_fitting_2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Error when calling linear_least_squares_fitting_2


Chronological Thread 
  • From: Pierre Alliez <>
  • To:
  • Subject: Re: [cgal-discuss] Error when calling linear_least_squares_fitting_2
  • Date: Tue, 17 Nov 2009 21:33:58 +0100
  • Organization: INRIA

dear Genis,

can you dump your point coordinates to the console and then to your email?

I could take a look at your problem.

thank you,
Pierre Alliez
INRIA Sophia Antipolis - Mediterranee 
Project-team GEOMETRICA 
http://www-sop.inria.fr/members/Pierre.Alliez/
Tel: +33 4 92 38 76 77
Fax: +33 4 97 15 53 95


Genís a écrit :
I read carefully the documentation and I understood that error launches when
all  lines  going through the centroid of the cloud of points fit. The
problem is that the program crashes when that happens. Is there any way I
could check that before calling linear_least_squares_fitting_2? or, better,
any way I could handle that exception avoiding that crash? (sorry for my
poor english).

Genís wrote:
  
Hello,

I often get the following error when calling
linear_least_squares_fitting_2:

main: /usr/include/CGAL/eigen_2.h:69: void
CGAL::CGALi::eigen_symmetric_2(const typename K::FT*, std::pair<typename
K::Vector_2, typename K::Vector_2>&, std::pair<typename K::FT, typename
K::FT>&) [with K = CGAL::Cartesian<double>]: Assertion `a == 0 || c ==
0.0' failed.

I imagine that it is caused because I don't use an exact predicates
kernel, could it be that? The problem is that when I try to use a kernel
as Cartesian<CGAL::Gmpq> I get a long compilation error.

Ciao

    

  



Archive powered by MHonArc 2.6.16.

Top of Page