mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-18 21:57:54 +05:00
PAL15429 Computation of the mesh, based on "014.brep" via Tetrahedron(NETGEN), is failed.
fix for G7.py + /*! + * \brief Return number of unique ancestors of the shape + */ + static int NbAncestors(const TopoDS_Shape& shape, + const SMESH_Mesh& mesh, + TopAbs_ShapeEnum ancestorType=TopAbs_SHAPE); +
This commit is contained in:
parent
29d2fbe903
commit
b22df369ef
@ -1149,6 +1149,25 @@ bool SMESH_MesherHelper::LoadNodeColumns(TParam2ColumnMap & theParam2ColumnMap,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Return number of unique ancestors of the shape
|
||||||
|
*/
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
int SMESH_MesherHelper::NbAncestors(const TopoDS_Shape& shape,
|
||||||
|
const SMESH_Mesh& mesh,
|
||||||
|
TopAbs_ShapeEnum ancestorType/*=TopAbs_SHAPE*/)
|
||||||
|
{
|
||||||
|
TopTools_MapOfShape ancestors;
|
||||||
|
TopTools_ListIteratorOfListOfShape ansIt( mesh.GetAncestors(shape) );
|
||||||
|
for ( ; ansIt.More(); ansIt.Next() ) {
|
||||||
|
if ( ancestorType == TopAbs_SHAPE || ansIt.Value().ShapeType() == ancestorType )
|
||||||
|
ancestors.Add( ansIt.Value() );
|
||||||
|
}
|
||||||
|
return ancestors.Extent();
|
||||||
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
/**
|
/**
|
||||||
* Check mesh without geometry for: if all elements on this shape are quadratic,
|
* Check mesh without geometry for: if all elements on this shape are quadratic,
|
||||||
|
@ -106,6 +106,13 @@ public:
|
|||||||
return ind;
|
return ind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Return number of unique ancestors of the shape
|
||||||
|
*/
|
||||||
|
static int NbAncestors(const TopoDS_Shape& shape,
|
||||||
|
const SMESH_Mesh& mesh,
|
||||||
|
TopAbs_ShapeEnum ancestorType=TopAbs_SHAPE);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// ---------- PUBLIC INSTANCE METHODS ----------
|
// ---------- PUBLIC INSTANCE METHODS ----------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user