Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Numbertypes for convex hulls

Subject: CGAL users discussion list

List archive

[cgal-discuss] Numbertypes for convex hulls


Chronological Thread 
  • From: "Jens K. Becker" <>
  • To:
  • Subject: [cgal-discuss] Numbertypes for convex hulls
  • Date: Tue, 23 Sep 2008 12:44:38 +0200

Hi all,

After triangulating a set of points using Delaunay, I run through the list of
points to get the dual of each incident cell. I do that for each point in the
triangulation and construct (using convex_hull_3) a polyhedron of these
dual-points. This works great if I use Gmpz as a number type but fails if I
change the number type to double (by just changeing the typedef).

CGAL error: postcondition violation!
Expr: is_strongly_convex_3(P, traits)
File: /usr/local/src/CGAL-3.3.1/include/CGAL/convex_hull_3.h
Line: 468
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Aborted

How come the exact same code works for Gmpz and not for doubles?

Thanks for any tips,

Jens Becker

--
Dr. J.K. Becker
University of Tuebingen - Institute for Geoscience
Sigwartst. 10 - 72076 Tuebingen (Germany)
Tel.: ++49 7071 29 73139 Fax: +49 7071 5059
web: http://www.jkbecker.de






Archive powered by MHonArc 2.6.16.

Top of Page