From a6a46e6f6ad3644817c7e3552f6536ea99534d93 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 20 May 2009 15:48:43 +0000 Subject: [PATCH] 0020279: [CEA 334] control the "random" use when using mesh algorithms sort faces by IDs --- src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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; }; -- 2.39.2