From: eap Date: Wed, 24 Aug 2011 17:03:36 +0000 (+0000) Subject: bug of NbElements() which misses nb of SEG2 elements X-Git-Tag: V6_4_0a1~91 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48da63cb03086485505370caf123e47a070c8efa;p=modules%2Fsmesh.git bug of NbElements() which misses nb of SEG2 elements --- diff --git a/src/SMDS/SMDS_MeshInfo.hxx b/src/SMDS/SMDS_MeshInfo.hxx index 55a729b7b..87a096f03 100644 --- a/src/SMDS/SMDS_MeshInfo.hxx +++ b/src/SMDS/SMDS_MeshInfo.hxx @@ -102,23 +102,23 @@ inline SMDS_MeshInfo::SMDS_MeshInfo(): myNbPrisms (0), myNbQuadPrisms (0), myNbPolyhedrons(0) { - // Number of nodes in standard element types + // Number of nodes in standard element types (. - actual nb, * - after the shift) // n v f e 0 n // o o a d d o // d l c g d // e e e e // s // ----------------- - // 0 * + // 0 - DON't USE 0!!! // 1 . * - // 2 * + // 2 . // 3 . * // 4 * . . // 5 * // 6 * . - // 7 + // 7 * // 8 * . - // 9 + // 9 * // 10 * // 11 * // 12 * @@ -135,7 +135,7 @@ inline SMDS_MeshInfo::SMDS_MeshInfo(): myShift.resize(SMDSAbs_NbElementTypes, 0); myShift[ SMDSAbs_Face ] = +8; // 3->11, 4->12, 6->14, 8->16 - myShift[ SMDSAbs_Edge ] = -2; // 2->0, 4->2 + myShift[ SMDSAbs_Edge ] = +5; // 2->7, 4->9 myShift[ SMDSAbs_0DElement ] = +2; // 1->3 myNb.resize( index( SMDSAbs_Volume,20 ) + 1, NULL);