summaryrefslogtreecommitdiff
path: root/inc/Geom2dHatch_Intersector.hxx
blob: bb8fd83d96505df7ebe38a6fbc7e5e32db86ce9b (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
// 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 _Geom2dHatch_Intersector_HeaderFile
#define _Geom2dHatch_Intersector_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 _Geom2dInt_GInter_HeaderFile
#include <Geom2dInt_GInter.hxx>
#endif
class Geom2dAdaptor_Curve;
class gp_Lin2d;
class gp_Dir2d;



class Geom2dHatch_Intersector  : public Geom2dInt_GInter {
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); 
  }

  //! Creates an intersector. <br>
      Geom2dHatch_Intersector(const Standard_Real Confusion,const Standard_Real Tangency);
  //! Returns the confusion tolerance of the <br>
//!          intersector. <br>
        Standard_Real ConfusionTolerance() const;
  //! Sets the confusion tolerance of the intersector. <br>
        void SetConfusionTolerance(const Standard_Real Confusion) ;
  //! Returns the tangency tolerance of the <br>
//!          intersector. <br>
        Standard_Real TangencyTolerance() const;
  //! Sets the tangency tolerance of the intersector. <br>
        void SetTangencyTolerance(const Standard_Real Tangency) ;
  //! Intersects the curves C1 and C2. <br>
//!          The results are retreived by the usual methods <br>
//!          described in IntRes2d_Intersection. <br>//! Creates an intersector. <br>
        void Intersect(const Geom2dAdaptor_Curve& C1,const Geom2dAdaptor_Curve& C2) ;
  
  Standard_EXPORT   Geom2dHatch_Intersector();
  //! Performs the intersection   between the  2d   line <br>
//!          segment (<L>, <P>) and  the  Curve <E>.  The  line <br>
//!          segment  is the  part  of  the  2d   line   <L> of <br>
//!          parameter range [0, <P>] (P is positive and can be <br>
//!          RealLast()). Tol is the  Tolerance on the segment. <br>
//!          The order  is relevant, the  first argument is the <br>
//!          segment, the second the Edge. <br>
  Standard_EXPORT     void Perform(const gp_Lin2d& L,const Standard_Real P,const Standard_Real Tol,const Geom2dAdaptor_Curve& E) ;
  //! Returns in <T>,  <N> and <C>  the tangent,  normal <br>
//!          and  curvature of the edge  <E> at parameter value <br>
//!          <U>. <br>
  Standard_EXPORT     void LocalGeometry(const Geom2dAdaptor_Curve& E,const Standard_Real U,gp_Dir2d& T,gp_Dir2d& N,Standard_Real& C) const;





protected:





private:



Standard_Real myConfusionTolerance;
Standard_Real myTangencyTolerance;


};


#include <Geom2dHatch_Intersector.lxx>



// other Inline functions and methods (like "C++: function call" methods)


#endif