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: Genís <>
  • To:
  • Subject: Re: [cgal-discuss] Error when calling linear_least_squares_fitting_2
  • Date: Tue, 17 Nov 2009 07:22:41 -0800 (PST)


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
>

--
View this message in context:
http://old.nabble.com/Error-when-calling-linear_least_squares_fitting_2-tp26391575p26391759.html
Sent from the cgal-discuss mailing list archive at Nabble.com.




Archive powered by MHonArc 2.6.16.

Top of Page