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();
This commit is contained in:
eap 2010-10-04 11:27:58 +00:00
parent 7b7daf5e4b
commit cd749c768d

View File

@ -1215,6 +1215,8 @@ CORBA::Boolean SMESH_MeshEditor_i::SplitQuadObject (SMESH::SMESH_IDSource_ptr th
CORBA::Long SMESH_MeshEditor_i::BestSplit (CORBA::Long IDOfQuad, CORBA::Long SMESH_MeshEditor_i::BestSplit (CORBA::Long IDOfQuad,
SMESH::NumericalFunctor_ptr Criterion) SMESH::NumericalFunctor_ptr Criterion)
{ {
initData();
const SMDS_MeshElement* quad = GetMeshDS()->FindElement(IDOfQuad); const SMDS_MeshElement* quad = GetMeshDS()->FindElement(IDOfQuad);
if (quad && quad->GetType() == SMDSAbs_Face && quad->NbNodes() == 4) 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); Unexpect aCatch(SALOME_SalomeException);
initData();
SMESH::long_array_var anElementsId = elems->GetIDs(); SMESH::long_array_var anElementsId = elems->GetIDs();
TIDSortedElemSet elemSet; TIDSortedElemSet elemSet;
arrayToSet( anElementsId, GetMeshDS(), elemSet, SMDSAbs_Volume ); arrayToSet( anElementsId, GetMeshDS(), elemSet, SMDSAbs_Volume );