0030345: Mesh, BRepMesh_CurveTessellator - GCPnts_TangentialDeflection throws Standar...
[occt.git] / src / BRepMesh / BRepMesh_DelaunayBaseMeshAlgo.hxx
1 // Created on: 2016-07-07
2 // Copyright (c) 2016 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_DelaunayBaseMeshAlgo_HeaderFile
17 #define _BRepMesh_DelaunayBaseMeshAlgo_HeaderFile
18
19 #include <BRepMesh_BaseMeshAlgo.hxx>
20 #include <NCollection_Shared.hxx>
21 #include <IMeshTools_Parameters.hxx>
22
23 class BRepMesh_DataStructureOfDelaun;
24 class BRepMesh_Delaun;
25
26 //! Class provides base fuctionality to build face triangulation using Dealunay approach.
27 //! Performs generation of mesh using raw data from model.
28 class BRepMesh_DelaunayBaseMeshAlgo : public BRepMesh_BaseMeshAlgo
29 {
30 public:
31
32   //! Constructor.
33   Standard_EXPORT BRepMesh_DelaunayBaseMeshAlgo();
34
35   //! Destructor.
36   Standard_EXPORT virtual ~BRepMesh_DelaunayBaseMeshAlgo();
37
38   DEFINE_STANDARD_RTTI_INLINE(BRepMesh_DelaunayBaseMeshAlgo, BRepMesh_BaseMeshAlgo)
39
40 protected:
41
42   //! Returns size of cell to be used by acceleration circles grid structure.
43   virtual std::pair<Standard_Integer, Standard_Integer> getCellsCount (const Standard_Integer /*theVerticesNb*/)
44   {
45     return std::pair<Standard_Integer, Standard_Integer> (-1, -1);
46   }
47
48   //! Generates mesh for the contour stored in data structure.
49   Standard_EXPORT virtual void generateMesh() Standard_OVERRIDE;
50
51   //! Perfroms processing of generated mesh.
52   //! By default does nothing.
53   virtual void postProcessMesh(BRepMesh_Delaun& /*theMesher*/)
54   {
55   }
56 };
57
58 #endif