Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IFGraph / IFGraph_Cycles.cxx
1 #include <IFGraph_Cycles.ixx>
2 #include <Interface_GraphContent.hxx>
3 #include <IFGraph_StrongComponants.hxx>
4
5
6
7 //  Cycles utilise les services de StrongComponants :
8 //  Il retient les Strong Componants qui ne sont pas Single
9
10
11     IFGraph_Cycles::IFGraph_Cycles
12   (const Interface_Graph& agraph, const Standard_Boolean whole)
13       :  IFGraph_SubPartsIterator (agraph,whole)    {  }
14
15     IFGraph_Cycles::IFGraph_Cycles (IFGraph_StrongComponants& subparts)
16       :  IFGraph_SubPartsIterator (subparts)    {  }
17
18
19     void  IFGraph_Cycles::Evaluate ()
20 {
21   IFGraph_StrongComponants complist(Model(),Standard_False);
22   complist.GetFromIter(Loaded());
23   for (complist.Start(); complist.More(); complist.Next()) {
24     if (complist.IsSingle()) continue;
25     AddPart();
26     GetFromIter(complist.Entities());
27   }
28 }