Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::ConvexHullBuilder

Builds ConvexHull objects.

Functions

NameDescription
AddPoint(double, double)

Push a point.

BuildConvexHull()

Build a convex hull.

BuildConvexHull(ConvexHull *, Geo::s32 *)

Build a convex hull.

Clear()

Clear the points, ready for a new hull.

ConvexHullBuilder(Geo::s32)

Creates a ConvexHullBuilder with the given maximum number of points.

GetNumPoints()

Return the number of points.

GetPoint(Geo::s32, float &, float &)

Return a point.

GetPoint(Geo::s32, double &, double &)

Return a point.


Anchor
abeb2f0b88c2e97c5283d9e7a99fa3ebd
abeb2f0b88c2e97c5283d9e7a99fa3ebd

void Geo::ConvexHullBuilder::AddPoint

...

public: void AddPoint
(
    double u,
    double v
)

...

Push a point.


Anchor
a53b4a14644ce5db4d385bdc97b250267
a53b4a14644ce5db4d385bdc97b250267

ConvexHull* Geo::ConvexHullBuilder::BuildConvexHull

...

public: ConvexHull * BuildConvexHull()

...

Build a convex hull.

Not const because it does internal sorting.


Anchor
ab24e45cacc299c3a603456c935f83dda
ab24e45cacc299c3a603456c935f83dda

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.


Anchor
a4b3ecaefd625a56d2a18cffc3504bf3a
a4b3ecaefd625a56d2a18cffc3504bf3a

void Geo::ConvexHullBuilder::Clear

...

public: void Clear()

...

Clear the points, ready for a new hull.


Anchor
a12d5ede4429051cac087df3c32d51c3e
a12d5ede4429051cac087df3c32d51c3e

Geo::ConvexHullBuilder::ConvexHullBuilder

...

public: ConvexHullBuilder
(
    Geo::s32 maxPoints
)

...

Creates a ConvexHullBuilder with the given maximum number of points.


Anchor
aefe8df7c968a0b412e9debdc99506a3b
aefe8df7c968a0b412e9debdc99506a3b

Geo::s32 Geo::ConvexHullBuilder::GetNumPoints

...

public: Geo::s32 GetNumPoints() const

...

Return the number of points.


Anchor
a98130ca31b9f1f1d5d26935cea8e1558
a98130ca31b9f1f1d5d26935cea8e1558

void Geo::ConvexHullBuilder::GetPoint

...

public: void GetPoint
(
    Geo::s32 i,
    float & u,
    float & v
) const

...

Return a point.


Anchor
a7fc52b1308c99ed8fa1b23d7e7f0d5e5
a7fc52b1308c99ed8fa1b23d7e7f0d5e5

void Geo::ConvexHullBuilder::GetPoint

...

public: void GetPoint
(
    Geo::s32 i,
    double & u,
    double & v
) const

...

Return a point.