Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Bug in Polyhedron_incremental_builder_3::test_facet_indices()

Subject: CGAL users discussion list

List archive

[cgal-discuss] Bug in Polyhedron_incremental_builder_3::test_facet_indices()


Chronological Thread 
  • From: Marius Kintel <>
  • To:
  • Subject: [cgal-discuss] Bug in Polyhedron_incremental_builder_3::test_facet_indices()
  • Date: Thu, 23 Jan 2014 00:12:44 -0500

Hi,

Polyhedron_incremental_builder_3::test_facet_indices() tries to detect if a
list of indices has the same index specified twice.
Due to a bug, this test doesn’t actually detect that in all cases:
e.g., sending the vector [6,6,5,6] will pass this test while it should
obviously fail.

The problem appears to be on line 752:
for ( std::size_t k = 0; k+1 < i; ++k) {

..where k is being iterated one step too short to detect this issue.

-Marius




Archive powered by MHonArc 2.6.18.

Top of Page