DFNgen  2.0
DFN Model Generator
insertShape.h
Go to the documentation of this file.
1 #ifndef _insertShape_h_
2 #define _insertShape_h_
3 #include <vector>
4 #include <random>
5 #include "structures.h"
6 #include <fstream>
7 #include <string>
8 #include "distributions.h"
9 
10 void insertUserRects(std::vector<Poly> &acceptedPoly, std::vector<IntPoints> &intpts, struct Stats &pstats, std::vector<Point> &triplePoints);
11 void insertUserEll(std::vector<Poly>& acceptedPoly, std::vector<IntPoints> &intpts,struct Stats &pstats, std::vector<Point> &triplePoints);
12 void insertUserRectsByCoord(std::vector<Poly>& acceptedPoly, std::vector<IntPoints> &intpts,struct Stats &pstats, std::vector<Point> &triplePoints);
13 void insertUserEllByCoord(std::vector<Poly>& acceptedPoly, std::vector<IntPoints> &intpts, struct Stats &pstats, std::vector<Point> &triplePoints);
14 struct Poly generatePoly(struct Shape &shapeFam, std::mt19937_64 &generator, Distributions &distributions, int familyIndex, bool useList);
15 void initializeRectVertices(struct Poly &newPoly, float radius, float aspectRatio);
16 void assignAperture(struct Poly &newPoly, std::mt19937_64 &generator);
17 void assignPermeability(struct Poly &newPoly);
18 void reTranslatePoly(struct Poly &newPoly, struct Shape &shapeFam, std::mt19937_64 &generator);
19 bool p32Complete(int size);
20 void initializeEllVertices(struct Poly &newPoly, float radius, float aspectRatio, float *thetaList, int numPoints);
21 void printRejectReason(int rejectCode, struct Poly newPoly);
22 int getFamilyNumber(int familyIndex, int family);
23 std::string shapeType(struct Shape &shapeFam);
24 double getLargestFractureRadius(Shape &shapeFam);
25 struct Poly generatePoly_withRadius(double radius,struct Shape &shapeFam, std::mt19937_64 &generator, Distributions &distributions, int familyIndex);
26 
27 #endif
28 
void initializeRectVertices(struct Poly &newPoly, float radius, float aspectRatio)
bool p32Complete(int size)
void insertUserRectsByCoord(std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intpts, struct Stats &pstats, std::vector< Point > &triplePoints)
void reTranslatePoly(struct Poly &newPoly, struct Shape &shapeFam, std::mt19937_64 &generator)
void assignAperture(struct Poly &newPoly, std::mt19937_64 &generator)
void insertUserEllByCoord(std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intpts, struct Stats &pstats, std::vector< Point > &triplePoints)
float aspectRatio
Definition: structures.h:49
void insertUserRects(std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intpts, struct Stats &pstats, std::vector< Point > &triplePoints)
struct Poly generatePoly_withRadius(double radius, struct Shape &shapeFam, std::mt19937_64 &generator, Distributions &distributions, int familyIndex)
int getFamilyNumber(int familyIndex, int family)
void insertUserEll(std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intpts, struct Stats &pstats, std::vector< Point > &triplePoints)
struct Poly generatePoly(struct Shape &shapeFam, std::mt19937_64 &generator, Distributions &distributions, int familyIndex, bool useList)
Definition: insertShape.cpp:26
std::string shapeType(struct Shape &shapeFam)
void initializeEllVertices(struct Poly &newPoly, float radius, float aspectRatio, float *thetaList, int numPoints)
void printRejectReason(int rejectCode, struct Poly newPoly)
void assignPermeability(struct Poly &newPoly)
double getLargestFractureRadius(Shape &shapeFam)