HUtilitySparseShell
-
class
HUtilitySparseShell Index
Methods
AddOneIndexToPair()AddOneTranslation()DeleteByKey()EditShellFaces()EditShellPoints()ExpandPairToIndices()ExpandSharedVertices()ExpandShellLookup()GetIndex()GetPair()GetPairCount()GetPairs()HUtilitySparseShell()KInsertShell()RemoveOneTranslation()RemoveTranslations()~HUtilitySparseShell()
Variables
Methods
private
-
void
HUtilitySparseShell::ExpandShellLookup(int count) private
-
void
HUtilitySparseShell::ExpandPairToIndices() private
-
void
HUtilitySparseShell::AddOneIndexToPair(int bigIndex, int littleIndex) protected
-
void
HUtilitySparseShell::RemoveOneTranslation(HC_KEY key, int littleIndex) protected
-
void
HUtilitySparseShell::RemoveTranslations(HC_KEY key, int face_list_length, int const face_list[]) protected
-
static void
HUtilitySparseShell::AddOneTranslation(void *arg1, void *arg2, void *arg3) protected static
-
HUtilitySparseShell::HUtilitySparseShell(bool needPairToIndex, bool needIndexToPair)
-
virtual
HUtilitySparseShell::~HUtilitySparseShell() virtual
-
HC_KEY
HUtilitySparseShell::KInsertShell(int point_count, HPoint const points[], int face_list_length, int const face_list[]) Compacts a sparsely-referenced points array into its minimal subset, records the translation information from the original specification. Requires that a HOOPS segment be open.
Parameters
point_count: the number of points in the master points list.
points: the master points list.
face_list_length: the length of the face_list array.
face_list: the vertex indices that connect to form faces (see docs for HC_Insert_Shell.
Returns
the key to the HOOPS shell that was inserted.
-
void
HUtilitySparseShell::DeleteByKey(HC_KEY key) Calls through to HOOPS to remove the item. If the item was inserted by
HUtilitySparseShell::KInsertShell, this function additionally removes the translation informationParameters
key: the key to the item to be deleted, as returned from this->KInsertShell.
-
void
HUtilitySparseShell::EditShellPoints(HC_KEY key, int littleIndexOffset, int ndelete, int insert, HPoint const points[])
-
void
HUtilitySparseShell::EditShellFaces(HC_KEY key, int ioffset, int ndelete, int insert_list_length, int const insert_list[]) just a simple call through to HC_Edit_Shell_Faces. Nothing needs to be done here, but it provides consistency in the calling conventions.
Parameters
key: the key to the item to be deleted, as returned from this->KInsertShell.
-
int
HUtilitySparseShell::GetPairCount(int bigIndex) const const
returns the number of times vertex bigIndex is shared into littleIndex values
-
bool
HUtilitySparseShell::GetPair(int bigIndex, int n, HC_KEY *key, int *littleIndex) const const
retrieves the nth key/littleIndex pair that inherits from bigIndex
Parameters
bigIndex: the index into the master points array
n: which of the shared vertices to return (e.g. the i in a for(i=0;;i++) loop)
key: returned to user
littleIndex: returned to user
Returns
true if successful
-
bool
HUtilitySparseShell::GetPairs(int bigIndex, HC_KEY keys[], int littleIndices[]) const const
retrieves all key/littleIndex pairs that inherit from bigIndex
Parameters
bigIndex: the index into the master points array
keys: returned to user. Caller must be allocate to length
GetPairCount()littleIndices: returned to user. Caller must be allocate to length
GetPairCount()Returns
true if successful
-
bool
HUtilitySparseShell::GetIndex(HC_KEY key, int littleIndex, int *bigIndex) const const
returns the bigIndex from which the key/littleIndex pair came
Variables
-
HPoint const *
HUtilitySparseShell::m_OldPoints private
-
HPoint *
HUtilitySparseShell::m_NewPoints private
-
bool
HUtilitySparseShell::m_p2i protected
bool
-
bool
HUtilitySparseShell::m_i2p protected
bool
-
unsigned int *
HUtilitySparseShell::m_IndexToPairs protected
unsigned int
-
int
HUtilitySparseShell::m_IndexToPairsAllocated protected
int
-
int
HUtilitySparseShell::m_IndexToPairsUsed protected
int
protected
protected
int
protected
int
-
ShellInfo *
HUtilitySparseShell::m_ShellLookup protected
-
int
HUtilitySparseShell::m_ShellLookupAllocated protected
int
-
int
HUtilitySparseShell::m_ShellLookupUsed protected
int
-
PairToIndex *
HUtilitySparseShell::m_PairToIndex protected
-
int
HUtilitySparseShell::m_PairToIndexAllocated protected
int
-
int
HUtilitySparseShell::m_PairToIndexUsed protected
int