From: eap Date: Thu, 13 Mar 2014 18:17:11 +0000 (+0400) Subject: Fix a regression introduced by IMP 22316: EDF 2719 SMESH: Split hexas into prisms X-Git-Tag: V7_4_0a1~36^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=375935ef8950c9a97f8677b72bef29107e1fa70c;p=modules%2Fsmesh.git Fix a regression introduced by IMP 22316: EDF 2719 SMESH: Split hexas into prisms --- diff --git a/src/SMDS/SMDS_VtkVolume.cxx b/src/SMDS/SMDS_VtkVolume.cxx index d11f12b1e..e78e8d24b 100644 --- a/src/SMDS/SMDS_VtkVolume.cxx +++ b/src/SMDS/SMDS_VtkVolume.cxx @@ -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 diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index fc554be48..350fcd60f 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -2157,7 +2157,7 @@ void SMESH_MeshEditor::SplitVolumes (const TFacetOfElem & theElems, helper.SetIsQuadratic( false ); } vector nodes( volTool.GetNodes(), - volTool.GetNodes() + elem->NbCornerNodes() ); + volTool.GetNodes() + elem->NbNodes() ); helper.SetElementsOnShape( true ); if ( splitMethod._baryNode ) {