mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 16:10:34 +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,
|
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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user