tags:

views:

339

answers:

3

I've got a bunch of 3D vertex positions & need to generate a convex hull containing them; does anyone know of any QHull bindings for .NET? or native 3D Delaunay triangulation algorithms?

+1  A: 

A 3d delauney is tricky, I'm not sure it's even possible to strictly define a delauney constraint for a 3d surface.
The normal technique if you just want to mesh a surface is to pick a direction and map that onto 2 coordinates and do a 2d delauney. For a height map it's easy to just use x,y. Then when you have the nodes forming each triangle you can of course use their 3d coordinates.

The best 2d code is probably http://www.cs.cmu.edu/~quake/triangle.html
This will also give you the convex hull

Martin Beckett
This works great - until you hit the colinear point problem that Delaunay has :(But for something like a heightmap (or a very irregular solid), this technique would be ideal.
moobaa
A: 

Have a look at this site that takes about 2D and 3D point finding in shapes.

John
A: 

Since this is the top google hit for "convex hull generation", I want to point readers towards Stan Melax's hull generation code. It's been packaged by John Ratcliff as "stanhull". Easier to work with than QHull.

Edit: A link to stanhull

Paul Du Bois