4c04741d |
1 | // Created on: 2019-07-08 |
2 | // Copyright (c) 2019 OPEN CASCADE SAS |
3 | // Created by: Oleg AGASHIN |
4 | // |
5 | // This file is part of Open CASCADE Technology software library. |
6 | // |
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. |
12 | // |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
15 | |
16 | #ifndef _BRepMesh_ConstrainedBaseMeshAlgo_HeaderFile |
17 | #define _BRepMesh_ConstrainedBaseMeshAlgo_HeaderFile |
18 | |
19 | #include <BRepMesh_BaseMeshAlgo.hxx> |
20 | #include <NCollection_Shared.hxx> |
21 | #include <IMeshTools_Parameters.hxx> |
22 | |
4c04741d |
23 | class BRepMesh_Delaun; |
24 | |
f2006a6f |
25 | //! Class provides base functionality to build face triangulation using Dealunay approach. |
4c04741d |
26 | //! Performs generation of mesh using raw data from model. |
27 | class BRepMesh_ConstrainedBaseMeshAlgo : public BRepMesh_BaseMeshAlgo |
28 | { |
29 | public: |
30 | |
31 | //! Constructor. |
32 | BRepMesh_ConstrainedBaseMeshAlgo () |
33 | { |
34 | } |
35 | |
36 | //! Destructor. |
37 | virtual ~BRepMesh_ConstrainedBaseMeshAlgo () |
38 | { |
39 | } |
40 | |
4945e8be |
41 | DEFINE_STANDARD_RTTIEXT(BRepMesh_ConstrainedBaseMeshAlgo, BRepMesh_BaseMeshAlgo) |
4c04741d |
42 | |
43 | protected: |
44 | |
45 | //! Returns size of cell to be used by acceleration circles grid structure. |
46 | virtual std::pair<Standard_Integer, Standard_Integer> getCellsCount (const Standard_Integer /*theVerticesNb*/) |
47 | { |
48 | return std::pair<Standard_Integer, Standard_Integer> (-1, -1); |
49 | } |
50 | |
f2006a6f |
51 | //! Performs processing of generated mesh. |
4c04741d |
52 | //! By default does nothing. |
53 | //! Expected to be called from method generateMesh() in successor classes. |
ce97cd97 |
54 | virtual void postProcessMesh (BRepMesh_Delaun& /*theMesher*/, |
55 | const Message_ProgressRange& /*theRange*/) |
4c04741d |
56 | { |
57 | } |
58 | }; |
59 | |
60 | #endif |