Versions Compared

Key

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

class Geo::PointSplitState

Common construction state for a point kd-tree.

This just reduces the number of in/out arguments.

Variables

NameDescription
Geo::s32 m_LeafThreshold

The maximum number of points to consider as a leaf. Will be enforced to be at least 1.

Geo::GeoArray< PointLeaf > & m_Leaves

Dynamic array to put leaves in.

Geo::s32 m_MaxDepth

Potential helpful stat computed during construction.

Geo::s32 m_NumPoints

Number of points in pointArray.

Geo::v128 * m_PointArray

The array of points to build a tree from.

Geo::GeoArray< PointSplit > & m_Splits

Dynamic array to put splits in.

Functions


Anchor
a1b2abcfa4d63df1c6e8692b4930942b3
a1b2abcfa4d63df1c6e8692b4930942b3

const PointSplitState& Geo::PointSplitState::operator=

...

public: const PointSplitState & operator=
(
    const PointSplitState & rhs
)

...

not implemented. Prevents a warning.


Anchor
a7f874dee30172558c868962fcc6542f8
a7f874dee30172558c868962fcc6542f8

Geo::PointSplitState::PointSplitState

...

public: PointSplitState
(
    Geo::v128 * pointArray,
    Geo::s32 numPoints,
    Geo::s32 leafThreshold,
    Geo::GeoArray< PointSplit > & splits,
    Geo::GeoArray< PointLeaf > & leaves
)

...

Creates a PointSplitState.