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:
eap 2009-02-20 07:14:17 +00:00
parent 651353fbca
commit 070f27d74e

View File

@ -1149,6 +1149,25 @@ bool SMESH_MesherHelper::LoadNodeColumns(TParam2ColumnMap & theParam2ColumnMap,
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,