mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 00:30:33 +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 Handle_TColgp_HArray1OfPnt;
|
||||
class Handle_TColgp_HArray1OfVec;
|
||||
class TopoDS_Shape;
|
||||
class gp_Pnt;
|
||||
class gp_Vec;
|
||||
|
||||
@ -42,6 +41,8 @@ class gp_Vec;
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
/*!
|
||||
* \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);
|
||||
|
||||
/*!
|
||||
* \brief Return sum of generated and already present triangles
|
||||
*/
|
||||
int TotalNbOfTriangles() const { return myNbTriangles; }
|
||||
|
||||
TopoDS_Shape GetShape() const { return myShape; }
|
||||
|
||||
protected:
|
||||
|
||||
//bool CheckDegenerate(const SMDS_MeshElement* aFace);
|
||||
@ -77,17 +85,19 @@ protected:
|
||||
bool Compute2ndPart(SMESH_Mesh& aMesh);
|
||||
|
||||
|
||||
typedef std::list<const SMDS_MeshFace* > TTriaList;
|
||||
typedef std::multimap<const SMDS_MeshElement*, TTriaList > TQuad2Trias;
|
||||
//typedef std::map<const SMDS_MeshElement*, TTriaList *, TIDCompare> TPyram2Trias;
|
||||
typedef std::list<const SMDS_MeshFace* > TTriaList;
|
||||
typedef std::multimap<const SMDS_MeshElement*, TTriaList > TQuad2Trias;
|
||||
|
||||
TQuad2Trias myResMap;
|
||||
//TPyram2Trias myPyram2Trias;
|
||||
std::vector<const SMDS_MeshElement*> myPyramids;
|
||||
|
||||
std::list< const SMDS_MeshNode* > myDegNodes;
|
||||
|
||||
const SMESH_ElementSearcher* myElemSearcher;
|
||||
|
||||
int myNbTriangles;
|
||||
|
||||
TopoDS_Shape myShape;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user