Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Convex Hull

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Convex Hull


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Convex Hull
  • Date: Fri, 11 Jul 2008 11:14:25 +0200

Stefan Schirra wrote:
Hi,

Rafael Roberto wrote:

I have some points from a cube. They are very well distributed so that every face have 100 points. But, when I call CGAL::convex_hull some points are connected to the others. Some faces have only two triangle, others have 5 or 6, but it never generate a convex hull with all the points triangulated (attached we have one of its faces projected).

I guess, you use a incremental CGAL algorithm that processes the points one by one. Whenever a point to be processed is outside of the current hull, it is a new vertex and hence connected to the vertices of the ridges of the visible part of the current hull, in your terminology, "it is triangulated"; If the point is inside or on the boundary of the current hull, nothing happens.

Does anybody know if there is any way to use this CGAL function and all points be triangulated?

Well, you need to process the points in such a way that points are always outside the present hull, for example, row by row per face. This works, unless the CGAL algorithm permutes the points internally in order to guarantee good expected worst case behavior. I don't know whether a random permutation is applied, I guess not.

best regards

Stefan





Hi Rafael,

An alternative might be to use the 3D Delaunay triangulation. The faces
opposite to the infinite vertex are the triangles on the convex hull.
We had users who found it a drawback that points on the interior of convex
hull faces
don't get removed. For you this would be the desired feature. It remains to
convert this to a Polyhedron though.

andreas




Archive powered by MHonArc 2.6.16.

Top of Page