From b812db1dd36b5a6528bfac5421ffbed2da196dc8 Mon Sep 17 00:00:00 2001 From: eap Date: Sat, 13 Nov 2010 08:54:52 +0000 Subject: [PATCH] 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; } --- .../StdMeshers_QuadToTriaAdaptor.hxx | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx index 874fdc6a9..ceccb2542 100644 --- a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx +++ b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx @@ -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 #include +#include + /*! * \brief "Transforms" quadrilateral faces into triangular ones by creation of pyramids */ @@ -58,6 +59,13 @@ public: const std::list* 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 TTriaList; - typedef std::multimap TQuad2Trias; - //typedef std::map TPyram2Trias; + typedef std::list TTriaList; + typedef std::multimap TQuad2Trias; TQuad2Trias myResMap; - //TPyram2Trias myPyram2Trias; std::vector myPyramids; std::list< const SMDS_MeshNode* > myDegNodes; const SMESH_ElementSearcher* myElemSearcher; + + int myNbTriangles; + + TopoDS_Shape myShape; }; #endif -- 2.39.2