From: eap Date: Wed, 20 May 2009 15:48:43 +0000 (+0000) Subject: 0020279: [CEA 334] control the "random" use when using mesh algorithms X-Git-Tag: V4_1_0_maintainance_FINAL~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a6a46e6f6ad3644817c7e3552f6536ea99534d93;p=modules%2Fsmesh.git 0020279: [CEA 334] control the "random" use when using mesh algorithms sort faces by IDs --- diff --git a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx index af818549f..89d747cbe 100644 --- a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx +++ b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx @@ -27,7 +27,7 @@ #define _SMESH_QuadToTriaAdaptor_HXX_ #include -#include +#include "SMESH_StdMeshers.hxx" #include #include #include @@ -48,15 +48,15 @@ public: bool Compute(SMESH_Mesh& aMesh); - std::list GetTriangles(const SMDS_MeshElement* aFace); + const std::list* GetTriangles(const SMDS_MeshElement* aFace); protected: //bool CheckDegenerate(const SMDS_MeshElement* aFace); int Preparation(const SMDS_MeshElement* face, - Handle(TColgp_HArray1OfPnt) PN, - Handle(TColgp_HArray1OfVec) VN, + Handle(TColgp_HArray1OfPnt)& PN, + Handle(TColgp_HArray1OfVec)& VN, std::vector& FNodes, gp_Pnt& PC, gp_Vec& VNorm); @@ -67,8 +67,10 @@ protected: bool Compute2ndPart(SMESH_Mesh& aMesh); + typedef std::map< const SMDS_MeshElement*, const SMDS_MeshElement*, TIDCompare > TF2PyramMap; + std::map< const SMDS_MeshElement*, std::list > myResMap; - std::map< const SMDS_MeshElement*, const SMDS_MeshElement* > myMapFPyram; + TF2PyramMap myMapFPyram; std::list< const SMDS_MeshNode* > myDegNodes; };