Class ConvexHull
java.lang.Object
|
+----Surface
|
+----DSurface
|
+----ConvexHull
- public class ConvexHull
- extends DSurface
A class representing the convex hull of a set of points.
-
ConvexHull()
- Constructs a convex hull initialised to a null surface.
-
ConvexHull(Vector)
- Constructs the convex hull of a set of vertices.
-
interSetFaces(Vector, Vector)
- Determine the hull faces that have vertices in each of two sets
ConvexHull
public ConvexHull()
- Constructs a convex hull initialised to a null surface.
ConvexHull
public ConvexHull(Vector vertices) throws ConvexHullException
- Constructs the convex hull of a set of vertices.
- Parameters:
- - - vertices the set of vertices
- Throws: -
- ConvexHullException
if hull construction fails
interSetFaces
public Vector interSetFaces(Vector s1,
Vector s2)
- Determine the hull faces that have vertices in each of two sets
- Parameters:
- - - s1, s2 the vertex sets
- Returns:
- - returns a vector of triangles that lie on the hull