//const double maxAngle = 5 * Standard_PI180;
if ( !isConvex )
{
- cout << "Concave FACE " << helper.GetMeshDS()->ShapeToIndex( F ) << endl;
+ //cout << "Concave FACE " << helper.GetMeshDS()->ShapeToIndex( F ) << endl;
return true;
// map< double, const SMDS_MeshNode* > u2nodes;
// if ( !SMESH_Algo::GetSortedNodesOnEdge( helper.GetMeshDS(), E,
<< "meshSO = GetCurrentStudy().FindObjectID('0:1:2:3')" << endl
<< "mesh = Mesh( meshSO.GetObject() )"<<endl;
}
- ~PyDump() {
- *py << "mesh.MakeGroup('Prisms of viscous layers',VOLUME,FT_ElemGeomType,'=',Geom_PENTA)"
- <<endl; delete py; py=0;
+ void Finish() {
+ if (py)
+ *py << "mesh.MakeGroup('Viscous Prisms',VOLUME,FT_ElemGeomType,'=',Geom_PENTA)"<<endl;
+ delete py; py=0;
}
+ ~PyDump() { Finish(); }
};
#define dumpFunction(f) { _dumpFunction(f, __LINE__);}
#define dumpMove(n) { _dumpMove(n, __LINE__);}
for ( int i=1; i < f->NbNodes(); ++i ) *py << f->GetNode(i-1)->GetID()<<", ";
*py << f->GetNode( f->NbNodes()-1 )->GetID() << " ])"<< endl; }}
#else
- struct PyDump { };
-#define dumpFunction(f)
+ struct PyDump { void Finish() {} };
+#define dumpFunction(f) f
#define dumpMove(n)
#define dumpCmd(txt)
#define dumpFunctionEnd()
-#define dumpChangeNodes()
+#define dumpChangeNodes(f)
#endif
}
addBoundaryElements();
makeGroupOfLE(); // debug
+ debugDump.Finish();
return _error;
}
}
else
{
- involvedFaces.erase( trias[bestCouple].first );
+ involvedFaces.erase( badTrias[iTia] );
}
}
if ( triaCouples.empty() )