This is the documentation for Enlighten.
class Geo ConvexHullBuilder
class Geo::ConvexHullBuilder
Builds ConvexHull objects.
Functions
Name | Description |
|---|---|
Push a point. | |
Build a convex hull. | |
Build a convex hull. | |
Clear the points, ready for a new hull. | |
Creates a ConvexHullBuilder with the given maximum number of points. | |
Return the number of points. | |
Return a point. | |
Return a point. |
void Geo::ConvexHullBuilder::AddPoint
public: void AddPoint
(
double u,
double v
)
Push a point.
ConvexHull* Geo::ConvexHullBuilder::BuildConvexHull
public: ConvexHull * BuildConvexHull()
Build a convex hull.
Not const because it does internal sorting.
bool Geo::ConvexHullBuilder::BuildConvexHull
public: bool BuildConvexHull
(
ConvexHull * hull,
Geo::s32 * numPoints
)
Build a convex hull.
Not const because it does internal sorting. This does the operation in place and returns the actual number of points on the hull. Use this if you are creating many hulls and don't want to allocate new hulls each time.
void Geo::ConvexHullBuilder::Clear
public: void Clear()
Clear the points, ready for a new hull.