22 void insertUserRects(std::vector<Poly>& acceptedPoly, std::vector<IntPoints> &intpts,
struct Stats &pstats, std::vector<Point> &triplePoints) {
24 std::cout <<
"\n" <<
nUserRect <<
" User Rectangles Defined\n";
44 angle =
urBeta[i] * M_PI/180;
79 std::cout <<
"\nUser Rectangle " << i+1 <<
" was rejected for being outside the defined domain.\n";
102 std::cout <<
"\nUser Defined Rectangular Fracture " << (i+1) <<
" Accepted\n";
103 acceptedPoly.push_back(newPoly);
109 std::cout <<
"\nRejected user defined rectangular fracture " << i+1 <<
"\n";
void translate(Poly &newPoly, double *translation)
double getArea(struct Poly &poly)
void initializeRectVertices(struct Poly &newPoly, float radius, float aspectRatio)
struct RejectionReasons rejectionReasons
unsigned long long int outside
void insertUserRects(std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intpts, struct Stats &pstats, std::vector< Point > &triplePoints)
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 applyRotation2D(Poly &newPoly, float angle)
unsigned int acceptedPolyCount
unsigned long long int rejectedPolyCount