public class ConvexHull
extends java.lang.Object
Constructor and Description |
---|
ConvexHull(PointND[] pts) |
Modifier and Type | Method and Description |
---|---|
void |
build() |
void |
build2D() |
Triangle[] |
getFaces()
Returns the hull as an array of triangles
|
PointND[] |
getHullPoints()
returns the hull as an array of Points
|
PointND[] |
getRasterPoints(int number) |
PointND[] |
intersect2D(StraightLine line)
Intersects lines between subsequent hull points.
|
PointND[] |
intersect3D(StraightLine line) |
boolean |
isInside(PointND point)
Tests whether the point is inside the convex hull.
|
public ConvexHull(PointND[] pts)
public void build()
public void build2D()
public PointND[] getHullPoints()
public Triangle[] getFaces()
public boolean isInside(PointND point)
point
- public PointND[] intersect2D(StraightLine line)
line
- the line to intersect with the hullpublic PointND[] intersect3D(StraightLine line)
public PointND[] getRasterPoints(int number)