mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-05-11 00:50:48 +05:00
0020973: EDF 1554 GHS3DPLUGIN: Make possible to have a mixed mesh hexa-tetra with GHS3D
+ int TotalNbOfTriangles() const { return myNbTriangles; } + TopoDS_Shape GetShape() const { return myShape; }
This commit is contained in:
parent
32e5f26956
commit
b812db1dd3
@ -33,7 +33,6 @@ class SMDS_MeshNode;
|
|||||||
class SMDS_MeshFace;
|
class SMDS_MeshFace;
|
||||||
class Handle_TColgp_HArray1OfPnt;
|
class Handle_TColgp_HArray1OfPnt;
|
||||||
class Handle_TColgp_HArray1OfVec;
|
class Handle_TColgp_HArray1OfVec;
|
||||||
class TopoDS_Shape;
|
|
||||||
class gp_Pnt;
|
class gp_Pnt;
|
||||||
class gp_Vec;
|
class gp_Vec;
|
||||||
|
|
||||||
@ -42,6 +41,8 @@ class gp_Vec;
|
|||||||
#include <list>
|
#include <list>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <TopoDS_Shape.hxx>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief "Transforms" quadrilateral faces into triangular ones by creation of pyramids
|
* \brief "Transforms" quadrilateral faces into triangular ones by creation of pyramids
|
||||||
*/
|
*/
|
||||||
@ -58,6 +59,13 @@ public:
|
|||||||
|
|
||||||
const std::list<const SMDS_MeshFace*>* GetTriangles(const SMDS_MeshElement* aFace);
|
const std::list<const SMDS_MeshFace*>* GetTriangles(const SMDS_MeshElement* aFace);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Return sum of generated and already present triangles
|
||||||
|
*/
|
||||||
|
int TotalNbOfTriangles() const { return myNbTriangles; }
|
||||||
|
|
||||||
|
TopoDS_Shape GetShape() const { return myShape; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
//bool CheckDegenerate(const SMDS_MeshElement* aFace);
|
//bool CheckDegenerate(const SMDS_MeshElement* aFace);
|
||||||
@ -77,17 +85,19 @@ protected:
|
|||||||
bool Compute2ndPart(SMESH_Mesh& aMesh);
|
bool Compute2ndPart(SMESH_Mesh& aMesh);
|
||||||
|
|
||||||
|
|
||||||
typedef std::list<const SMDS_MeshFace* > TTriaList;
|
typedef std::list<const SMDS_MeshFace* > TTriaList;
|
||||||
typedef std::multimap<const SMDS_MeshElement*, TTriaList > TQuad2Trias;
|
typedef std::multimap<const SMDS_MeshElement*, TTriaList > TQuad2Trias;
|
||||||
//typedef std::map<const SMDS_MeshElement*, TTriaList *, TIDCompare> TPyram2Trias;
|
|
||||||
|
|
||||||
TQuad2Trias myResMap;
|
TQuad2Trias myResMap;
|
||||||
//TPyram2Trias myPyram2Trias;
|
|
||||||
std::vector<const SMDS_MeshElement*> myPyramids;
|
std::vector<const SMDS_MeshElement*> myPyramids;
|
||||||
|
|
||||||
std::list< const SMDS_MeshNode* > myDegNodes;
|
std::list< const SMDS_MeshNode* > myDegNodes;
|
||||||
|
|
||||||
const SMESH_ElementSearcher* myElemSearcher;
|
const SMESH_ElementSearcher* myElemSearcher;
|
||||||
|
|
||||||
|
int myNbTriangles;
|
||||||
|
|
||||||
|
TopoDS_Shape myShape;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user