Implement the gift wrapping algorithm for finding the convex hull of a set of points in 3D.
struct _face3 { point3 *p1, *p2, *p3; //the vertices on this face (in ccw as looking from outside) face3d *f12; //face to the left of p1p2 face3d *f23; //face to the left of p2p3 face3d *f31; //face to the left of p3p1 } face3;
Enjoy!