21 void insertUserEll(std::vector<Poly>& acceptedPoly, std::vector<IntPoints> &intpts,
struct Stats &pstats, std::vector<Point> &triplePoints) {
23 std::cout <<
"\n" <<
nUserEll <<
" User Ellipses Defined\n\n";
54 angle =
ueBeta[i] * M_PI/180;
89 std::cout<<
"\nUser Ellipse "<< i+1 <<
" was rejected for being outside the defined domain.\n";
113 std::cout<<
"User Defined Elliptical Fracture "<<(i+1)<<
" Accepted\n";
114 acceptedPoly.push_back(newPoly);
120 std::cout<<
"\nRejected User Defined Elliptical Fracture "<< i+1<<
"\n";
void translate(Poly &newPoly, double *translation)
double getArea(struct Poly &poly)
struct RejectionReasons rejectionReasons
unsigned long long int outside
std::vector< unsigned int > rejectsPerAttempt
void applyRotation3D(Poly &newPoly, double *normalB)
void createBoundingBox(struct Poly &newPoly)
bool domainTruncation(Poly &newPoly, double *domainSize)
int intersectionChecking(struct Poly &newPoly, std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intPtsList, struct Stats &pstats, std::vector< Point > &triplePoints)
void printRejectReason(int rejectCode, struct Poly newPoly)
void generateTheta(float *&thetaArray, float aspectRatio, int nPoints)
void initializeEllVertices(struct Poly &newPoly, float radius, float aspectRatio, float *thetaList, int numPoints)
void applyRotation2D(Poly &newPoly, float angle)
unsigned int acceptedPolyCount
void insertUserEll(std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intpts, struct Stats &pstats, std::vector< Point > &triplePoints)
unsigned long long int rejectedPolyCount