Go to the documentation of this file.
39 if(!checkFlatness(p1,p2,p3,p4))
42 "points p1, p2, p3 and p4 do not form a plane wall in dictionary " << dict.
globalName()<<
endl;
46 if(!addPlaneWall(p1,p2,p3,p4,numDiv12,numDiv23))
49 "could not create plane wall from dictionary "<< dict.
globalName()<<
endl;
92 real dt12 = 1.0/numDiv12;
93 real dt23 = 1.0/numDiv23;
101 for(
int32 i=0; i<numDiv12; i++)
104 auto lp1 = line12.
point(t12);
105 auto lp4 = line43.
point(t12);
106 auto lp2 = line12.
point(t12+dt12);
107 auto lp3 = line43.
point(t12+dt12);
109 line line14(lp1,lp4);
110 line line23(lp2,lp3);
112 for(
int32 j=0; j<numDiv23; j++)
118 line23.
point(t23+dt23),
119 line14.
point(t23+dt23) )
143 if(!readPlaneWall(dict))
158 if(!checkFlatness(p1,p2,p3,p4))
161 "the input points p1, p2, p3, and p4 are not in the same plane "<<
endl;
165 if(!addPlaneWall(p1,p2,p3,p4, numDiv12, numDiv23))
168 "could not create plane wall from input points "<<
endl;
std::vector< realx3x3 > triangles_
bool readPlaneWall(const dictionary &dict)
T getValOrSet(const word &keyword, const T &setVal) const
virtual word globalName() const
iOstream & endl(iOstream &os)
bool addWall4(const realx3 &p1, const realx3 &p2, const realx3 &p3, const realx3 &p4)
#define fatalErrorInFunction
INLINE_FUNCTION_H Type max(const Type *first, int32 numElems)
INLINE_FUNCTION_HD realx3 point(real t) const
bool addPlaneWall(const realx3 &p1, const realx3 &p2, const realx3 &p3, const realx3 &p4, int32 numDiv12=1, int32 numDiv23=1)
triple< realx3 > realx3x3
bool checkFlatness(const realx3 &p1, const realx3 &p2, const realx3 &p3, const realx3 &p4)
T getVal(const word &keyword) const
static bool checkTrianlge(const realx3 &p1, const realx3 &p2, const realx3 &p3)