0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / BRepMesh / BRepMesh_CustomDelaunayBaseMeshAlgo.hxx
CommitLineData
4c04741d 1// Created on: 2019-06-07
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_CustomDelaunayBaseMeshAlgo_HeaderFile
17#define _BRepMesh_CustomDelaunayBaseMeshAlgo_HeaderFile
18
19class BRepMesh_DataStructureOfDelaun;
20class BRepMesh_Delaun;
21
22//! Class provides base fuctionality to build face triangulation using custom
23//! triangulation algorithm with possibility to modify final mesh.
24//! Performs generation of mesh using raw data from model.
25template<class BaseAlgo>
26class BRepMesh_CustomDelaunayBaseMeshAlgo : public BaseAlgo
27{
28public:
29
30 //! Constructor.
31 BRepMesh_CustomDelaunayBaseMeshAlgo ()
32 {
33 }
34
35 //! Destructor.
36 virtual ~BRepMesh_CustomDelaunayBaseMeshAlgo ()
37 {
38 }
39
40protected:
41
42 //! Perfroms processing of generated mesh.
43 virtual void postProcessMesh(BRepMesh_Delaun& theMesher)
44 {
45 BaseAlgo::postProcessMesh (theMesher);
46
47 const Handle(BRepMesh_DataStructureOfDelaun)& aStructure = this->getStructure();
48 std::pair<Standard_Integer, Standard_Integer> aCellsCount = this->getCellsCount (aStructure->NbNodes());
49 theMesher.InitCirclesTool (aCellsCount.first, aCellsCount.second);
50 }
51};
52
53#endif