Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Bug in Polyhedral_mesh_domain_3.h

Subject: CGAL users discussion list

List archive

[cgal-discuss] Bug in Polyhedral_mesh_domain_3.h


Chronological Thread 
  • From: "balint.miklos" <>
  • To:
  • Subject: [cgal-discuss] Bug in Polyhedral_mesh_domain_3.h
  • Date: Thu, 14 Jan 2010 22:23:48 -0800 (PST)


Hi,

First I want to say thank you to the authors of the 3d meshing package,
because I am using this package and I am very happy with it.

I think I have found a bug in Polyhedral_mesh_domain_3.h (in the CGAL 3.5
version). On line 332-334 the following code

const Point_3 center( FT( (bbox.xmin() + bbox.xmax()) / 2),
FT( (bbox.xmin() + bbox.xmax()) / 2),
FT( (bbox.xmin() + bbox.xmax()) / 2) );

made my code hang for certain data, so I changed it to

const Point_3 center( FT( (bbox.xmin() + bbox.xmax()) / 2),
FT( (bbox.ymin() + bbox.ymax()) / 2),
FT( (bbox.zmin() + bbox.zmax()) / 2) );

Hope if someone else got the same problem will find this post and a fix
makes its way to the new release

Thank you,
Balint
--
View this message in context:
http://n4.nabble.com/Bug-in-Polyhedral-mesh-domain-3-h-tp1014546p1014546.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page