1 #include <IFGraph_Cycles.ixx>
2 #include <Interface_GraphContent.hxx>
3 #include <IFGraph_StrongComponants.hxx>
7 // Cycles utilise les services de StrongComponants :
8 // Il retient les Strong Componants qui ne sont pas Single
11 IFGraph_Cycles::IFGraph_Cycles
12 (const Interface_Graph& agraph, const Standard_Boolean whole)
13 : IFGraph_SubPartsIterator (agraph,whole) { }
15 IFGraph_Cycles::IFGraph_Cycles (IFGraph_StrongComponants& subparts)
16 : IFGraph_SubPartsIterator (subparts) { }
19 void IFGraph_Cycles::Evaluate ()
21 IFGraph_StrongComponants complist(Model(),Standard_False);
22 complist.GetFromIter(Loaded());
23 for (complist.Start(); complist.More(); complist.Next()) {
24 if (complist.IsSingle()) continue;
26 GetFromIter(complist.Entities());