blob: 61e0174ad7b55d22ea11d83a3fc2c4755d6325e9 (
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
121
122
123
124
|
// 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 _Intf_Interference_HeaderFile
#define _Intf_Interference_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Intf_SeqOfSectionPoint_HeaderFile
#include <Intf_SeqOfSectionPoint.hxx>
#endif
#ifndef _Intf_SeqOfSectionLine_HeaderFile
#include <Intf_SeqOfSectionLine.hxx>
#endif
#ifndef _Intf_SeqOfTangentZone_HeaderFile
#include <Intf_SeqOfTangentZone.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class Standard_OutOfRange;
class Intf_SectionPoint;
class Intf_SectionLine;
class Intf_TangentZone;
//! Describes the Interference computation result <br>
//! between polygon2d or polygon3d or polyhedron. <br>
class Intf_Interference {
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);
}
//! Gives the number of points of intersection in the <br>
//! interference. <br>
Standard_EXPORT Standard_Integer NbSectionPoints() const;
//! Gives the point of intersection of address Index in <br>
//! the interference. <br>
Standard_EXPORT const Intf_SectionPoint& PntValue(const Standard_Integer Index) const;
//! Gives the number of polylines of intersection in the <br>
//! interference. <br>
Standard_EXPORT Standard_Integer NbSectionLines() const;
//! Gives the polyline of intersection at address <Index> in <br>
//! the interference. <br>
Standard_EXPORT const Intf_SectionLine& LineValue(const Standard_Integer Index) const;
//! Gives the number of zones of tangence in the interference. <br>
Standard_EXPORT Standard_Integer NbTangentZones() const;
//! Gives the zone of tangence at address Index in the <br>
//! interference. <br>
Standard_EXPORT const Intf_TangentZone& ZoneValue(const Standard_Integer Index) const;
//! Gives the tolerance used for the calculation. <br>
Standard_EXPORT Standard_Real GetTolerance() const;
//! Tests if the polylines of intersection or the zones of <br>
//! tangence contain the point of intersection <ThePnt>. <br>
Standard_EXPORT Standard_Boolean Contains(const Intf_SectionPoint& ThePnt) const;
//! Inserts a new zone of tangence in the current list of <br>
//! tangent zones of the interference and returns True <br>
//! when done. <br>
Standard_EXPORT Standard_Boolean Insert(const Intf_TangentZone& TheZone) ;
//! Insert a new segment of intersection in the current list of <br>
//! polylines of intersection of the interference. <br>
Standard_EXPORT void Insert(const Intf_SectionPoint& pdeb,const Intf_SectionPoint& pfin) ;
Standard_EXPORT void Dump() const;
protected:
Standard_EXPORT Intf_Interference(const Standard_Boolean Self);
//! Only one argument for the intersection. <br>
Standard_EXPORT void SelfInterference(const Standard_Boolean Self) ;
Intf_SeqOfSectionPoint mySPoins;
Intf_SeqOfSectionLine mySLines;
Intf_SeqOfTangentZone myTZones;
Standard_Boolean SelfIntf;
Standard_Real Tolerance;
private:
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|