blob: 4dd50d4919d10f4e25b77654cf06c86666315715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _BRepMesh_CircleTool_HeaderFile
#define _BRepMesh_CircleTool_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _BRepMesh_BaseAllocator_HeaderFile
#include <BRepMesh_BaseAllocator.hxx>
#endif
#ifndef _BRepMesh_CellFilter_HeaderFile
#include <BRepMesh_CellFilter.hxx>
#endif
#ifndef _BRepMesh_CircleInspector_HeaderFile
#include <BRepMesh_CircleInspector.hxx>
#endif
#ifndef _gp_XY_HeaderFile
#include <gp_XY.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _BRepMesh_ListOfInteger_HeaderFile
#include <BRepMesh_ListOfInteger.hxx>
#endif
class gp_XY;
class gp_Circ2d;
//! Create sort and destroy the circles used in <br>
//! triangulation. <br>
class BRepMesh_CircleTool {
public:
void* operator new(size_t,void* anAddress)
{
return anAddress;
}
void* operator new(size_t size)
{
return Standard::Allocate(size);
}
void operator delete(void *anAddress)
{
if (anAddress) Standard::Free((Standard_Address&)anAddress);
}
Standard_EXPORT BRepMesh_CircleTool(const BRepMesh_BaseAllocator& theAlloc);
//! Constructs a CircleTool with the maximal dimension <br>
//! of the occuped space and an evaluation of the <br>
//! number of circles. <br>
Standard_EXPORT BRepMesh_CircleTool(const Standard_Integer numberOfComponents,const BRepMesh_BaseAllocator& theAlloc);
//! Constructs a CircleTool with the maximal dimension <br>
//! of the occuped space and an evaluation of the <br>
//! number of circles. <br>
Standard_EXPORT void Initialize(const Standard_Integer numberOfComponents) ;
//! Sets new size for cellfilter <br>
Standard_EXPORT void SetCellSize(const Standard_Real theSize) ;
//! Sets new size for cellfilter <br>
Standard_EXPORT void SetCellSize(const Standard_Real theXSize,const Standard_Real theYSize) ;
//! Sets min and max size for circle <br>
Standard_EXPORT void SetMinMaxSize(const gp_XY& theMin,const gp_XY& theMax) ;
//! Adds and binds circle to the tool. <br>
Standard_EXPORT void Add(const gp_Circ2d& theCirc,const Standard_Integer theIndex) ;
//! Computes adds and binds circle to the tool. <br>
Standard_EXPORT Standard_Boolean Add(const gp_XY& p1,const gp_XY& p2,const gp_XY& p3,const Standard_Integer theIndex) ;
//! Adds implicit zero circle <br>
Standard_EXPORT void MocAdd(const Standard_Integer theIndex) ;
//! Deletes a circle from the tool. <br>
Standard_EXPORT void Delete(const Standard_Integer theIndex) ;
//! Select the circles which contains thePnt. <br>
Standard_EXPORT BRepMesh_ListOfInteger& Select(const gp_XY& thePnt) ;
protected:
private:
Standard_Real Tolerance;
BRepMesh_BaseAllocator Allocator;
BRepMesh_CellFilter CellFilter;
BRepMesh_CircleInspector Selector;
gp_XY FaceMax;
gp_XY FaceMin;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|