7bd071ed |
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_CylinderRangeSplitter_HeaderFile |
17 | #define _BRepMesh_CylinderRangeSplitter_HeaderFile |
18 | |
19 | #include <BRepMesh_DefaultRangeSplitter.hxx> |
7bd071ed |
20 | |
21 | //! Auxiliary class extending default range splitter in |
22 | //! order to generate internal nodes for cylindrical surface. |
23 | class BRepMesh_CylinderRangeSplitter : public BRepMesh_DefaultRangeSplitter |
24 | { |
25 | public: |
26 | |
27 | //! Constructor. |
28 | BRepMesh_CylinderRangeSplitter() |
29 | : myDu(1.) |
30 | { |
31 | } |
32 | |
33 | //! Destructor. |
34 | virtual ~BRepMesh_CylinderRangeSplitter() |
35 | { |
36 | } |
37 | |
38 | //! Resets this splitter. Must be called before first use. |
39 | Standard_EXPORT virtual void Reset(const IMeshData::IFaceHandle& theDFace, |
40 | const IMeshTools_Parameters& theParameters) Standard_OVERRIDE; |
41 | |
42 | //! Returns list of nodes generated using surface data and specified parameters. |
43 | Standard_EXPORT virtual Handle(IMeshData::ListOfPnt2d) GenerateSurfaceNodes( |
44 | const IMeshTools_Parameters& theParameters) const Standard_OVERRIDE; |
45 | |
46 | protected: |
47 | |
48 | //! Computes parametric delta taking length along U and V into account. |
49 | Standard_EXPORT virtual void computeDelta( |
50 | const Standard_Real theLengthU, |
51 | const Standard_Real theLengthV) Standard_OVERRIDE; |
52 | |
53 | private: |
54 | |
55 | Standard_Real myDu; |
56 | }; |
57 | |
58 | #endif |