From: ageay Date: Fri, 8 Jun 2012 12:56:52 +0000 (+0000) Subject: Bug correction for buildDescendingConnectivity on mesh with meshDim==1. X-Git-Tag: V6_main_FINAL~653 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6cc32b868e4d429162c131ea7f4a29f7396d44c;p=tools%2Fmedcoupling.git Bug correction for buildDescendingConnectivity on mesh with meshDim==1. --- diff --git a/src/INTERP_KERNEL/CellModel.cxx b/src/INTERP_KERNEL/CellModel.cxx index 687901388..528bacca3 100644 --- a/src/INTERP_KERNEL/CellModel.cxx +++ b/src/INTERP_KERNEL/CellModel.cxx @@ -119,12 +119,19 @@ namespace INTERP_KERNEL break; case NORM_SEG2: { - _nb_of_pts=2; _nb_of_sons=0; _dim=1; _extruded_type=NORM_QUAD4; _quadratic_type=NORM_SEG3; _is_simplex=true; _is_extruded=true; + _nb_of_pts=2; _nb_of_sons=2; _dim=1; _extruded_type=NORM_QUAD4; _quadratic_type=NORM_SEG3; _is_simplex=true; _is_extruded=true; + _sons_type[0]=NORM_POINT1; _sons_type[1]=NORM_POINT1; + _sons_con[0][0]=0; _nb_of_sons_con[0]=1; + _sons_con[1][0]=1; _nb_of_sons_con[1]=1; } break; case NORM_SEG3: { - _nb_of_pts=3; _nb_of_sons=0; _dim=1; _extruded_type=NORM_QUAD8; _linear_type=NORM_SEG2; _quadratic=true; _is_simplex=false; + _nb_of_pts=3; _nb_of_sons=3; _dim=1; _extruded_type=NORM_QUAD8; _linear_type=NORM_SEG2; _quadratic=true; _is_simplex=false; + _sons_type[0]=NORM_POINT1; _sons_type[1]=NORM_POINT1; _sons_type[2]=NORM_POINT1; + _sons_con[0][0]=0; _nb_of_sons_con[0]=1; + _sons_con[1][0]=1; _nb_of_sons_con[1]=1; + _sons_con[2][0]=2; _nb_of_sons_con[2]=1; } break; case NORM_TETRA4: