Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] "new_rd >= copy_rd" assertion violation in Orthogonal_incremental_neighbor_search.h

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] "new_rd >= copy_rd" assertion violation in Orthogonal_incremental_neighbor_search.h


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] "new_rd >= copy_rd" assertion violation in Orthogonal_incremental_neighbor_search.h
  • Date: Tue, 06 Mar 2012 18:29:02 +0100

Let switch the discussion in private. I'll post the answer on this list if we find a solution.



On 03/06/2012 06:08 PM, Nicholas Mario Wardhana wrote:
On 7 March 2012 00:33, Sebastien Loriot (GeometryFactory)
<>
wrote:
Thanks for the update.

Can you try before the assertion

CGAL_assertion(new_rd>= copy_rd);

to change
new_rd=Orthogonal_distance_instance.new_distance(copy_rd,old_off,new_off,new_cut_dim);
into
new_rd=old_off==new_off?copy_rd:Orthogonal_distance_instance.new_distance(copy_rd,old_off,new_off,new_cut_dim);

I still suspect an optimization problem.

Sebastien.



Hi Dr Loriot,

After reverting to the previous assertions and changing the lines as
you suggested, I still got the same error. For example, in one
occasion, I got the following values:

new_rd = 3240.3969698751616
copy_rd = 3240.3969698751621 ,

so I suppose it was still the same floating point problem. Anyway, I
am wondering if you mind telling me a bit about what that new line
does?

Thank you.

Best regards,
Nicholas





Archive powered by MHonArc 2.6.16.

Top of Page