Fix a regression introduced by IMP 22316: EDF 2719 SMESH: Split hexas into prisms

This commit is contained in:
eap 2014-03-13 22:17:11 +04:00
parent d58cd4792a
commit 375935ef89
2 changed files with 2 additions and 2 deletions

View 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

View 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 )
{