Versions Compared

Key

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

class Enlighten::MergeMap

Details of how the old groups have been merged into new groups.

Note it maps from old to new. You can infer new to old from this, but it's not explicitly stored. The TriGroupSelection member is also inferrable if you have the original tri groups but it is so frequently required that we store it as well.

The new groups are also split into two parts - the ones that were generated through a merge, and the ones we didn't merge. All the merged ones are first in the array, followed by the unmerged ones. The m_FirstUnmergedNewGroupIndex is the index of the first unmerged new group (and therefore also the number of merged new groups).

Variables

NameDescription
Geo::s32 m_FirstUnmergedNewGroupIndex

The index of the first unmerged new group.

Geo::GeoArray< Geo::s32 > m_NewGroupIdxFromOldIdx

m_MergeMap[oldGroupIdx] == new group idx

Geo::GeoArray< FitModel > m_NewGroupModels

The fitted model for each new group, indexed by new group idx.

Geo::TriGroupSelection * m_TriGroupSelection

The new merged tri groups.

Functions

NameDescription
~MergeMap()

Free everything.

ClearUp()

Free everything.

GetNumNewGroups()

Get the number of new (merged) tri groups.

GetNumOldGroups()

Get the number of old (original) tri groups.

MergeMap()

Initialise to empty.


Anchor
ae6f68704888148907f8d8514d8cea637
ae6f68704888148907f8d8514d8cea637

Enlighten::MergeMap::~MergeMap

...

public: ~MergeMap()

...

Free everything.


Anchor
a33770bf07650b99c13e01e879879f254
a33770bf07650b99c13e01e879879f254

void Enlighten::MergeMap::ClearUp

...

public: void ClearUp()

...

Free everything.


Anchor
a08abf49fdefe6d912913b5f85ce27a85
a08abf49fdefe6d912913b5f85ce27a85

Geo::s32 Enlighten::MergeMap::GetNumNewGroups

...

public: Geo::s32 GetNumNewGroups() const

...

Get the number of new (merged) tri groups.


Anchor
ab275bb396c3637b57dc5a4aa12bb089f
ab275bb396c3637b57dc5a4aa12bb089f

Geo::s32 Enlighten::MergeMap::GetNumOldGroups

...

public: Geo::s32 GetNumOldGroups() const

...

Get the number of old (original) tri groups.


Anchor
afa13ec01426c87d7abece3913ffff330
afa13ec01426c87d7abece3913ffff330

Enlighten::MergeMap::MergeMap

...

public: MergeMap()

...

Initialise to empty.