]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020889: EDF 1433 SMESH: SplitHexaToTetra: add the 24 tetras mode
authoreap <eap@opencascade.com>
Mon, 4 Oct 2010 11:27:58 +0000 (11:27 +0000)
committereap <eap@opencascade.com>
Mon, 4 Oct 2010 11:27:58 +0000 (11:27 +0000)
void SMESH_MeshEditor_i::SplitVolumesIntoTetra (SMESH::SMESH_IDSource_ptr elems,
                                                CORBA::Short              methodFlags)
  throw (SALOME::SALOME_Exception)
{
  Unexpect aCatch(SALOME_SalomeException);

+  initData();

src/SMESH_I/SMESH_MeshEditor_i.cxx

index dea0a8eea1a7253080aff559a120884db36ad854..b88de2d3951e42016f5f55ea5b89f7b3a1b3a9e1 100644 (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,
                                            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 );