0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / TopOpeBRepDS / TopOpeBRepDS_Reducer.cxx
1 // Copyright (c) 1997-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15
16 #include <TopOpeBRepDS_EIR.hxx>
17 #include <TopOpeBRepDS_EXPORT.hxx>
18 #include <TopOpeBRepDS_FIR.hxx>
19 #include <TopOpeBRepDS_HDataStructure.hxx>
20 #include <TopOpeBRepDS_Reducer.hxx>
21
22 //=======================================================================
23 //function : TopOpeBRepDS_Reducer
24 //purpose  : 
25 //=======================================================================
26 TopOpeBRepDS_Reducer::TopOpeBRepDS_Reducer
27 (const Handle(TopOpeBRepDS_HDataStructure)& HDS) : myHDS(HDS)
28 {}
29
30 //=======================================================================
31 //function : ProcessEdgeInterferences
32 //purpose  : 
33 //=======================================================================
34 void TopOpeBRepDS_Reducer::ProcessEdgeInterferences()
35 {
36   TopOpeBRepDS_EIR eir(myHDS);
37   eir.ProcessEdgeInterferences();
38 }
39
40 //=======================================================================
41 //function : ProcessFaceInterferences
42 //purpose  : 
43 //=======================================================================
44 void TopOpeBRepDS_Reducer::ProcessFaceInterferences
45 (const TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State& M)
46 {
47   //modified by NIZHNY-MZV  Tue Nov 16 16:12:15 1999
48   //FUN_ds_FEIGb1TO0(myHDS,M); //xpu250199
49
50   TopOpeBRepDS_FIR fir(myHDS);
51   fir.ProcessFaceInterferences(M);
52 }