From: eap Date: Mon, 4 Oct 2010 11:27:58 +0000 (+0000) Subject: 0020889: EDF 1433 SMESH: SplitHexaToTetra: add the 24 tetras mode X-Git-Tag: V5_1_5a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cd749c768d9b06f4bb769b872b371ebeb3fc68bf;p=modules%2Fsmesh.git 0020889: EDF 1433 SMESH: SplitHexaToTetra: add the 24 tetras mode void SMESH_MeshEditor_i::SplitVolumesIntoTetra (SMESH::SMESH_IDSource_ptr elems, CORBA::Short methodFlags) throw (SALOME::SALOME_Exception) { Unexpect aCatch(SALOME_SalomeException); + initData(); --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index dea0a8eea..b88de2d39 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -1215,6 +1215,8 @@ CORBA::Boolean SMESH_MeshEditor_i::SplitQuadObject (SMESH::SMESH_IDSource_ptr th CORBA::Long SMESH_MeshEditor_i::BestSplit (CORBA::Long IDOfQuad, SMESH::NumericalFunctor_ptr Criterion) { + initData(); + const SMDS_MeshElement* quad = GetMeshDS()->FindElement(IDOfQuad); if (quad && quad->GetType() == SMDSAbs_Face && quad->NbNodes() == 4) { @@ -1244,6 +1246,8 @@ void SMESH_MeshEditor_i::SplitVolumesIntoTetra (SMESH::SMESH_IDSource_ptr elems, { Unexpect aCatch(SALOME_SalomeException); + initData(); + SMESH::long_array_var anElementsId = elems->GetIDs(); TIDSortedElemSet elemSet; arrayToSet( anElementsId, GetMeshDS(), elemSet, SMDSAbs_Volume );