]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021016: [CEA] non regression test KO
authoreap <eap@opencascade.com>
Thu, 30 Sep 2010 13:25:40 +0000 (13:25 +0000)
committereap <eap@opencascade.com>
Thu, 30 Sep 2010 13:25:40 +0000 (13:25 +0000)
  Implement
      SMDS_ElemIteratorPtr Q2TAdaptor_Triangle::elementsIterator(SMDSAbs_ElementType type) const

src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx

index 5e3f5533fe923ca2a80c0b3989e14b1d5ba96d88..3ae9552d9e0e4371b280b1a124781499abb3cc75 100644 (file)
 //
 #include "StdMeshers_QuadToTriaAdaptor.hxx"
 
-#include <SMESH_Algo.hxx>
-#include <SMESH_MesherHelper.hxx>
+#include "SMDS_SetIterator.hxx"
+
+#include "SMESH_Algo.hxx"
+#include "SMESH_MesherHelper.hxx"
 
 #include <IntAna_IntConicQuad.hxx>
 #include <IntAna_Quadric.hxx>
@@ -89,6 +91,12 @@ namespace
     {
       return SMDSAbs_EntityType( Q2TAbs_TmpTriangle );
     }
+    virtual SMDS_ElemIteratorPtr elementsIterator(SMDSAbs_ElementType type) const
+    {
+      if ( type == SMDSAbs_Node )
+        return SMDS_ElemIteratorPtr( new SMDS_NodeArrayElemIterator( _nodes, _nodes+3 ));
+      throw SALOME_Exception(LOCALIZED("Not implemented"));
+    }
   };
 
   //================================================================================