]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020279: [CEA 334] control the "random" use when using mesh algorithms
authoreap <eap@opencascade.com>
Wed, 20 May 2009 15:48:43 +0000 (15:48 +0000)
committereap <eap@opencascade.com>
Wed, 20 May 2009 15:48:43 +0000 (15:48 +0000)
   sort faces by IDs

src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx

index af818549f264005607c7621b80d2eff1d107b3dd..89d747cbe00365a7e60ae89323accab7f6364c6d 100644 (file)
@@ -27,7 +27,7 @@
 #define _SMESH_QuadToTriaAdaptor_HXX_
 
 #include <SMESH_Mesh.hxx>
-#include <SMESH_StdMeshers.hxx>
+#include "SMESH_StdMeshers.hxx"
 #include <SMDS_FaceOfNodes.hxx>
 #include <TColgp_HArray1OfPnt.hxx>
 #include <TColgp_HArray1OfVec.hxx>
@@ -48,15 +48,15 @@ public:
 
   bool Compute(SMESH_Mesh& aMesh);
 
-  std::list<const SMDS_FaceOfNodes*> GetTriangles(const SMDS_MeshElement* aFace);
+  const std::list<const SMDS_FaceOfNodes*>* 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<const SMDS_MeshNode*>& 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<const SMDS_FaceOfNodes*> > myResMap;
-  std::map< const SMDS_MeshElement*, const SMDS_MeshElement* > myMapFPyram;
+  TF2PyramMap myMapFPyram;
   std::list< const SMDS_MeshNode* > myDegNodes;
 
 };