summaryrefslogtreecommitdiff
path: root/src/BRepFeat/BRepFeat_LocalOperation.cxx
blob: 60a8f081de8573a0dfcbf8e59dcb8b72908421d2 (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
// File:	BRepFeat_LocalOperation.cxx
// Created:	Tue Jun 13 11:50:02 1995
// Author:	Jacques GOUSSARD
//		<jag@bravox>


#include <BRepFeat_LocalOperation.ixx>

#include <TopExp_Explorer.hxx>

//=======================================================================
//function : Build
//purpose  : 
//=======================================================================

void BRepFeat_LocalOperation::Build () 
{
//  try {
    myBuilder.PerformResult();
    if (myBuilder.IsDone()) {
      Done();
      myShape = myBuilder.ResultingShape();

    // creation of the Map.
      TopExp_Explorer ex;
      myMap.Clear();
      for (ex.Init(myShape, TopAbs_FACE); ex.More(); ex.Next()) {
	myMap.Add(ex.Current());
      }
    }
    else {
      NotDone();
    }
//  }
//  catch (StdFail_NotDone) {
//    NotDone();
//  }
}