From: eap Date: Thu, 30 Sep 2010 13:25:40 +0000 (+0000) Subject: 0021016: [CEA] non regression test KO X-Git-Tag: V5_1_5a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a109051402f2812f58c0e6677e886e96a33128e2;p=modules%2Fsmesh.git 0021016: [CEA] non regression test KO Implement SMDS_ElemIteratorPtr Q2TAdaptor_Triangle::elementsIterator(SMDSAbs_ElementType type) const --- diff --git a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx index 5e3f5533f..3ae9552d9 100644 --- a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx +++ b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx @@ -25,8 +25,10 @@ // #include "StdMeshers_QuadToTriaAdaptor.hxx" -#include -#include +#include "SMDS_SetIterator.hxx" + +#include "SMESH_Algo.hxx" +#include "SMESH_MesherHelper.hxx" #include #include @@ -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")); + } }; //================================================================================