From: eap Date: Mon, 18 Jan 2010 10:16:31 +0000 (+0000) Subject: 0020634: [CEA 381] MEDMEM:REMAPPER : intersection error X-Git-Tag: V5_1_main_FINAL~244 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f5464d34bb79b13070b1507e6912f11313e1cb6;p=tools%2Fmedcoupling.git 0020634: [CEA 381] MEDMEM:REMAPPER : intersection error + unsigned getNumberOfNodesConstituentTheSon2(unsigned sonId, const int *nodalConn, int lgth) const; --- diff --git a/src/INTERP_KERNEL/CellModel.cxx b/src/INTERP_KERNEL/CellModel.cxx index 418936050..77a648582 100644 --- a/src/INTERP_KERNEL/CellModel.cxx +++ b/src/INTERP_KERNEL/CellModel.cxx @@ -313,4 +313,33 @@ namespace INTERP_KERNEL } } } + + //================================================================================ + /*! + * \brief Return number of nodes in sonId-th son of a Dynamic() cell + */ + //================================================================================ + + unsigned CellModel::getNumberOfNodesConstituentTheSon2(unsigned sonId, const int *nodalConn, int lgth) const + { + if(!isDynamic()) + return getNumberOfNodesConstituentTheSon(sonId); + + if(_dim==2)//polygon + { + return 2; + } + else + {//polyedron + const int *where=nodalConn; + for(int i=0;i