22 |
|
|
23 |
class Mesh; |
class Mesh; |
24 |
|
|
25 |
|
class Problem; |
26 |
class Structured3DMesh; |
class Structured3DMesh; |
27 |
class SurfaceMesh; |
class SurfaceMesh; |
28 |
|
|
29 |
class SurfaceMeshOfTriangles; |
class SurfaceMeshOfTriangles; |
30 |
class SurfaceMeshOfQuadrangles; |
class SurfaceMeshOfQuadrangles; |
31 |
|
|
|
|
|
|
#include <Edge.hpp> |
|
|
class Shape; |
|
|
|
|
|
class Boundary; |
|
32 |
class BoundaryConditionSurfaceMeshAssociation; |
class BoundaryConditionSurfaceMeshAssociation; |
33 |
|
|
|
class POVRayReferences; |
|
|
|
|
|
class Problem; |
|
|
|
|
|
#include <map> |
|
|
#include <vector> |
|
|
|
|
34 |
#include <Reference.hpp> |
#include <Reference.hpp> |
35 |
#include <TinyVector.hpp> |
#include <TinyVector.hpp> |
36 |
|
|
37 |
|
#include <Domain.hpp> |
38 |
|
#include <Shape.hpp> |
39 |
|
|
40 |
|
#include <set> |
41 |
|
|
42 |
class SurfaceMeshGenerator |
class SurfaceMeshGenerator |
43 |
{ |
{ |
44 |
private: |
private: |
45 |
struct __ltv |
class Internals; |
|
{ |
|
|
bool operator()(const TinyVector<3,real_t>& s1, const TinyVector<3,real_t>& s2) const |
|
|
{ |
|
|
if (s1[0]<s2[0]) |
|
|
return true; |
|
|
if (s1[1]<s2[1]) |
|
|
return true; |
|
|
if (s1[1]<s2[1]) |
|
|
return true; |
|
|
return false; |
|
|
} |
|
|
}; |
|
|
|
|
|
typedef std::map<TinyVector<3,real_t>, |
|
|
std::vector<SurfaceMesh*>, __ltv> VRRefMesh; |
|
|
|
|
|
TinyVector<3> |
|
|
__splitEdge(const Edge& e, |
|
|
const Reference::Representation& ref, |
|
|
const Shape& S); |
|
46 |
|
|
47 |
|
ReferenceCounting<Internals> __internals; |
48 |
public: |
public: |
49 |
|
|
50 |
void SurfaceMeshGenerator:: |
void SurfaceMeshGenerator:: |
52 |
BoundaryConditionSurfaceMeshAssociation& bcMeshAssociation, |
BoundaryConditionSurfaceMeshAssociation& bcMeshAssociation, |
53 |
Mesh& M); |
Mesh& M); |
54 |
|
|
|
void setBoundaryType(const Boundary& B, |
|
|
POVRayReferences& povReferences, |
|
|
TinyVector<6,bool>& faces); |
|
|
|
|
55 |
void generateSurfacicMesh(const Shape& S, |
void generateSurfacicMesh(const Shape& S, |
56 |
|
const Domain& Omega, |
57 |
SurfaceMeshOfTriangles& s_mesh, |
SurfaceMeshOfTriangles& s_mesh, |
58 |
Structured3DMesh& Mesh, |
Structured3DMesh& Mesh, |
59 |
const Reference::Representation& ref); |
const Reference::Representation& ref, |
60 |
|
const std::set<Reference::Representation>& refList); |
61 |
|
|
62 |
|
SurfaceMeshGenerator(); |
63 |
|
|
64 |
SurfaceMeshGenerator() |
~SurfaceMeshGenerator(); |
|
{ |
|
|
; |
|
|
} |
|
|
|
|
|
~SurfaceMeshGenerator() |
|
|
{ |
|
|
; |
|
|
} |
|
65 |
}; |
}; |
66 |
#endif // SURFACE_MESH_GENERATOR_HPP |
#endif // SURFACE_MESH_GENERATOR_HPP |