else
{
BF.Load(F);
- Standard_Boolean IsNatRestr = (F.NbChildren() == 0);
+ //Standard_Boolean IsNatRestr = (F.NbChildren() == 0);
+ TopoDS_Iterator aWIter(F);
+ Standard_Boolean IsNatRestr = !aWIter.More();
+
if (!IsNatRestr) BD.Init(F);
if (Eps < 1.0) {
G.Perform(BF, BD, Eps);
else
{
BF.Load(F);
- Standard_Boolean IsNatRestr = (F.NbChildren () == 0);
+ //Standard_Boolean IsNatRestr = (F.NbChildren () == 0);
+ TopoDS_Iterator aWIter(F);
+ Standard_Boolean IsNatRestr = !aWIter.More();
+
if (!IsNatRestr) BD.Init(F);
if (Eps < 1.0) {
G.Perform(BF, BD, Eps);