summaryrefslogtreecommitdiff
path: root/inc/IntTools_TopolTool.hxx
blob: d2480e21b018bfd1a63e40b7282522317c6322ed (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
// 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 _IntTools_TopolTool_HeaderFile
#define _IntTools_TopolTool_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IntTools_TopolTool_HeaderFile
#include <Handle_IntTools_TopolTool.hxx>
#endif

#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Adaptor3d_TopolTool_HeaderFile
#include <Adaptor3d_TopolTool.hxx>
#endif
#ifndef _Handle_Adaptor3d_HSurface_HeaderFile
#include <Handle_Adaptor3d_HSurface.hxx>
#endif
class Standard_DomainError;
class Adaptor3d_HSurface;
class gp_Pnt2d;
class gp_Pnt;


//! Class redefine methods of TopolTool from Adaptor3d <br>
//!         concerning sample points <br>
class IntTools_TopolTool : public Adaptor3d_TopolTool {

public:

  
//! Empty constructor <br>
  Standard_EXPORT   IntTools_TopolTool();
  
//! Initializes me by surface <br>
  Standard_EXPORT   IntTools_TopolTool(const Handle(Adaptor3d_HSurface)& theSurface);
  
//! Redefined empty initializer <br>
  Standard_EXPORT   virtual  void Initialize() ;
  
//! Initializes me by surface <br>
  Standard_EXPORT   virtual  void Initialize(const Handle(Adaptor3d_HSurface)& theSurface) ;
  
//! <br>
  Standard_EXPORT   virtual  void ComputeSamplePoints() ;
  
//! Computes the sample-points for the intersections algorithms <br>
  Standard_EXPORT   virtual  Standard_Integer NbSamplesU() ;
  
//! Computes the sample-points for the intersections algorithms <br>
  Standard_EXPORT   virtual  Standard_Integer NbSamplesV() ;
  
//! Computes the sample-points for the intersections algorithms <br>
  Standard_EXPORT   virtual  Standard_Integer NbSamples() ;
  
//! Returns a 2d point from surface myS <br>
//! and a corresponded 3d point <br>
//! for given index. <br>
//! The index should be from 1 to NbSamples() <br>
  Standard_EXPORT   virtual  void SamplePoint(const Standard_Integer Index,gp_Pnt2d& P2d,gp_Pnt& P3d) ;
  //! compute the sample-points for the intersections algorithms <br>
//! by adaptive algorithm for BSpline surfaces. For other surfaces algorithm <br>
//! is the same as in method ComputeSamplePoints(), but only fill arrays of U <br>
//! and V sample parameters; <br>
//! theDefl is a requred deflection <br>
//! theNUmin, theNVmin are minimal nb points for U and V. <br>
  Standard_EXPORT   virtual  void SamplePnts(const Standard_Real theDefl,const Standard_Integer theNUmin,const Standard_Integer theNVmin) ;




  DEFINE_STANDARD_RTTI(IntTools_TopolTool)

protected:




private: 


Standard_Integer myNbSmplU;
Standard_Integer myNbSmplV;
Standard_Real myU0;
Standard_Real myV0;
Standard_Real myDU;
Standard_Real myDV;


};





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


#endif