35 |
{ |
{ |
36 |
public: |
public: |
37 |
typedef Tetrahedron ElementsGeometry; |
typedef Tetrahedron ElementsGeometry; |
38 |
|
typedef MeshOfTetrahedra Transformed; |
39 |
|
|
40 |
|
typedef SurfaceMeshOfTriangles BorderMeshes; |
41 |
private: |
private: |
42 |
|
|
43 |
ReferenceCounting<Vector<Tetrahedron> > __cells; /**< Cells list */ |
ReferenceCounting<Vector<Tetrahedron> > __cells; /**< Cells list */ |
49 |
TinyVector<3,real_t> __a; /**< bounding box lower corner */ |
TinyVector<3,real_t> __a; /**< bounding box lower corner */ |
50 |
TinyVector<3,real_t> __b; /**< bounding box higher corner */ |
TinyVector<3,real_t> __b; /**< bounding box higher corner */ |
51 |
|
|
52 |
std::vector<ReferenceCounting<SurfaceMeshOfTriangles> > |
std::vector<ReferenceCounting<BorderMeshes> > |
53 |
__surfaceMeshes; /**< The various border lists*/ |
__surfaceMeshes; /**< The various border lists*/ |
54 |
|
|
55 |
/** |
/** |
150 |
|
|
151 |
MeshOfTetrahedra(ReferenceCounting<VerticesSet> vertices, |
MeshOfTetrahedra(ReferenceCounting<VerticesSet> vertices, |
152 |
ReferenceCounting<Vector<Tetrahedron> > tetrahedra, |
ReferenceCounting<Vector<Tetrahedron> > tetrahedra, |
153 |
std::vector<ReferenceCounting<SurfaceMeshOfTriangles> > triangles) |
std::vector<ReferenceCounting<BorderMeshes> > triangles) |
154 |
: Mesh(Mesh::tetrahedraMesh, |
: Mesh(Mesh::tetrahedraMesh, |
155 |
vertices), |
vertices), |
156 |
__cells(tetrahedra), |
__cells(tetrahedra), |
157 |
__surfaceMeshes(triangles) |
__surfaceMeshes(triangles) |
158 |
{ |
{ |
159 |
; |
this->buildLocalizationTools(); |
160 |
|
} |
161 |
|
|
162 |
|
/** |
163 |
|
* With this constructor border has to be built |
164 |
|
* |
165 |
|
* @param vertices |
166 |
|
* @param tetrahedra |
167 |
|
* |
168 |
|
*/ |
169 |
|
MeshOfTetrahedra(ReferenceCounting<VerticesSet> vertices, |
170 |
|
ReferenceCounting<Vector<Tetrahedron> > tetrahedra) |
171 |
|
: Mesh(Mesh::tetrahedraMesh, |
172 |
|
vertices), |
173 |
|
__cells(tetrahedra) |
174 |
|
{ |
175 |
|
this->buildLocalizationTools(); |
176 |
} |
} |
177 |
|
|
178 |
|
|