mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 13:30:36 +05:00
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:
parent
7b7daf5e4b
commit
cd749c768d
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user