- SMESH_subMesh* sm = theMesh.GetSubMesh(theShape);
- SMESH_subMeshIteratorPtr smIt = sm->getDependsOnIterator(true,false);
- cout << endl << string(80,'=') << endl
- << "Compute( face " << tgtMesh->ShapeToIndex(theShape) << endl;
- while ( smIt->more() )
- {
- sm = smIt->next();
- TopAbs::Print(sm->GetSubShape().ShapeType(), cout);
- cout << " " << sm->GetId() << endl << " Elems:";
- SMDS_ElemIteratorPtr eIt = sm->GetSubMeshDS()->GetElements();
- while ( eIt->more() )
- cout << " " << eIt->next()->GetID();
- cout << endl << " Nodes:";
- SMDS_NodeIteratorPtr nIt = sm->GetSubMeshDS()->GetNodes();
- while ( nIt->more() )
- cout << " " << nIt->next()->GetID();
- cout << endl;
- }
-