Salome HOME
Fix a regression introduced by IMP 22316: EDF 2719 SMESH: Split hexas into prisms
authoreap <eap@opencascade.com>
Thu, 13 Mar 2014 18:17:11 +0000 (22:17 +0400)
committereap <eap@opencascade.com>
Thu, 13 Mar 2014 18:17:11 +0000 (22:17 +0400)
src/SMDS/SMDS_VtkVolume.cxx
src/SMESH/SMESH_MeshEditor.cxx

index d11f12b..e78e8d2 100644 (file)
@@ -567,7 +567,7 @@ int SMDS_VtkVolume::NbCornerNodes() const
   case VTK_TRIQUADRATIC_HEXAHEDRON: return 8;
   default:;
   }
   case VTK_TRIQUADRATIC_HEXAHEDRON: return 8;
   default:;
   }
-  return grid->GetCell(myVtkID)->GetNumberOfPoints();
+  return NbNodes();
 }
 
 SMDSAbs_EntityType SMDS_VtkVolume::GetEntityType() const
 }
 
 SMDSAbs_EntityType SMDS_VtkVolume::GetEntityType() const
index fc554be..350fcd6 100644 (file)
@@ -2157,7 +2157,7 @@ void SMESH_MeshEditor::SplitVolumes (const TFacetOfElem & theElems,
       helper.SetIsQuadratic( false );
     }
     vector<const SMDS_MeshNode*> nodes( volTool.GetNodes(),
       helper.SetIsQuadratic( false );
     }
     vector<const SMDS_MeshNode*> nodes( volTool.GetNodes(),
-                                        volTool.GetNodes() + elem->NbCornerNodes() );
+                                        volTool.GetNodes() + elem->NbNodes() );
     helper.SetElementsOnShape( true );
     if ( splitMethod._baryNode )
     {
     helper.SetElementsOnShape( true );
     if ( splitMethod._baryNode )
     {