summaryrefslogtreecommitdiff
path: root/inc/ShapeUpgrade_RemoveLocations.lxx
blob: 44f40f71f67cf0a0071d337bd492d208d2808bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//=======================================================================
//function : GetResult
//purpose  : 
//=======================================================================

inline TopoDS_Shape ShapeUpgrade_RemoveLocations::GetResult() const
{
  return myShape;
}
 
//=======================================================================
//function : SetRemoveLevel
//purpose  : 
//=======================================================================

inline void ShapeUpgrade_RemoveLocations::SetRemoveLevel(const TopAbs_ShapeEnum theLevel) 
{
  
  if((Standard_Integer)theLevel > TopAbs_FACE)
    myLevelRemoving = TopAbs_FACE;
  else myLevelRemoving = theLevel;
}

 
//=======================================================================
//function : RemoveLevel
//purpose  : 
//=======================================================================

inline TopAbs_ShapeEnum ShapeUpgrade_RemoveLocations::RemoveLevel() const
{
  return myLevelRemoving;
}

//=======================================================================
//function : ModifiedShape
//purpose  : 
//=======================================================================

inline  TopoDS_Shape ShapeUpgrade_RemoveLocations::ModifiedShape(const TopoDS_Shape& theInitShape) const
{
  TopoDS_Shape aShape = theInitShape;
  if( myMapNewShapes.IsBound(theInitShape))
     aShape = myMapNewShapes.Find(theInitShape);
  return aShape;
}