1 // Created on: 2016-04-07
2 // Copyright (c) 2016 OPEN CASCADE SAS
3 // Created by: Oleg AGASHIN
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #include <BRepMesh_Context.hxx>
17 #include <BRepMesh_ModelBuilder.hxx>
18 #include <BRepMesh_EdgeDiscret.hxx>
19 #include <BRepMesh_ModelHealer.hxx>
20 #include <BRepMesh_FaceDiscret.hxx>
21 #include <BRepMesh_ModelPreProcessor.hxx>
22 #include <BRepMesh_ModelPostProcessor.hxx>
23 #include <BRepMesh_MeshAlgoFactory.hxx>
25 //=======================================================================
26 // Function: Constructor
28 //=======================================================================
29 BRepMesh_Context::BRepMesh_Context ()
31 SetModelBuilder (new BRepMesh_ModelBuilder);
32 SetEdgeDiscret (new BRepMesh_EdgeDiscret);
33 SetModelHealer (new BRepMesh_ModelHealer);
34 SetPreProcessor (new BRepMesh_ModelPreProcessor);
35 SetFaceDiscret (new BRepMesh_FaceDiscret(new BRepMesh_MeshAlgoFactory));
36 SetPostProcessor(new BRepMesh_ModelPostProcessor);
39 //=======================================================================
40 // Function: Destructor
42 //=======================================================================
43 BRepMesh_Context::~BRepMesh_Context ()