DFNgen  2.0
DFN Model Generator
FractureGroups Struct Reference

#include <structures.h>

Public Member Functions

 FractureGroups ()
 

Public Attributes

unsigned long long int groupNum
 
std::vector< unsigned int > polyList
 

Detailed Description

FractureGroups is a structure used to keep track of which fractures are in each cluster. FractureGroups works in conjunction with GroupData.

FractGroups holds pointers/index numbers to the polygons belonging to group number 'groupNum'. Unlike GroupData, fractGroups does not stay aligned to cluster group numbers. To keep from copying, deleteing, and re-allocating memory when groups merge together, we simply change the variable 'groupNum' to the new group number and leave the polygon pointer/index list as is.

Because of this, there will be multiple FractureGroups objects with the same group number when fracture clusters merge together, but with differnt polygons listed. To get all the polygons from a group we must search the fractGroups array for all matching groups and look at each of their polgon lists.

Definition at line 208 of file structures.h.

Constructor & Destructor Documentation

§ FractureGroups()

FractureGroups::FractureGroups ( )

Initializes polyList vector to reserve enough memory for 100 floats.

Definition at line 65 of file structures.cpp.

Member Data Documentation

§ groupNum

unsigned long long int FractureGroups::groupNum

Fracture cluster group number.

Definition at line 210 of file structures.h.

§ polyList

std::vector<unsigned int> FractureGroups::polyList

List of polygon indices in the 'acceptedPoly' array in main() which belong to this group.

Definition at line 212 of file structures.h.


The documentation for this struct was generated from the following files: