]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 d11f12b1ec6bbe6dcf77c6c8e63fc51707cde591..e78e8d24b4641ce92f16b3f0cf8c67825c2c0d53 100644 (file)
@@ -567,7 +567,7 @@ int SMDS_VtkVolume::NbCornerNodes() const
   case VTK_TRIQUADRATIC_HEXAHEDRON: return 8;
   default:;
   }
-  return grid->GetCell(myVtkID)->GetNumberOfPoints();
+  return NbNodes();
 }
 
 SMDSAbs_EntityType SMDS_VtkVolume::GetEntityType() const
index fc554be484a9ace88e500120584735d23d33a633..350fcd60f6f40b794f4687fbcb20050a5120e8d8 100644 (file)
@@ -2157,7 +2157,7 @@ void SMESH_MeshEditor::SplitVolumes (const TFacetOfElem & theElems,
       helper.SetIsQuadratic( false );
     }
     vector<const SMDS_MeshNode*> nodes( volTool.GetNodes(),
-                                        volTool.GetNodes() + elem->NbCornerNodes() );
+                                        volTool.GetNodes() + elem->NbNodes() );
     helper.SetElementsOnShape( true );
     if ( splitMethod._baryNode )
     {