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
Name | Description |
---|---|
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
Name | Description |
---|---|
~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. |
Enlighten::MergeMap::~MergeMap
public: ~MergeMap()
Free everything.
void Enlighten::MergeMap::ClearUp
public: void ClearUp()
Free everything.
Geo::s32 Enlighten::MergeMap::GetNumNewGroups
public: Geo::s32 GetNumNewGroups() const
Get the number of new (merged) tri groups.
Geo::s32 Enlighten::MergeMap::GetNumOldGroups
public: Geo::s32 GetNumOldGroups() const
Get the number of old (original) tri groups.
Enlighten::MergeMap::MergeMap
public: MergeMap()
Initialise to empty.