File: GeomFill_CoonsAlgPatch.hxx

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (95 lines) | stat: -rw-r--r-- 2,904 bytes parent folder | download | duplicates (5)
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
// 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 _GeomFill_CoonsAlgPatch_HeaderFile
#define _GeomFill_CoonsAlgPatch_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_GeomFill_CoonsAlgPatch.hxx>

#include <Handle_GeomFill_Boundary.hxx>
#include <gp_Pnt.hxx>
#include <Handle_Law_Function.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Real.hxx>
#include <Standard_Integer.hxx>
class GeomFill_Boundary;
class Law_Function;
class gp_Pnt;
class gp_Vec;


//! Provides  evaluation   methods on an   algorithmic
//! patch (based on 4 Curves) defined by  its   boundaries and  blending
//! functions.
class GeomFill_CoonsAlgPatch : public MMgt_TShared
{

public:

  
  //! Constructs the  algorithmic   patch. By   Default  the
  //! constructed blending functions are linear.
  //! Warning: No control is done on the bounds.
  //! B1/B3 and B2/B4 must be same range and well oriented.
  Standard_EXPORT GeomFill_CoonsAlgPatch(const Handle(GeomFill_Boundary)& B1, const Handle(GeomFill_Boundary)& B2, const Handle(GeomFill_Boundary)& B3, const Handle(GeomFill_Boundary)& B4);
  
  //! Give the blending functions.
  Standard_EXPORT   void Func (Handle(Law_Function)& f1, Handle(Law_Function)& f2)  const;
  
  //! Set the blending functions.
  Standard_EXPORT   void SetFunc (const Handle(Law_Function)& f1, const Handle(Law_Function)& f2) ;
  
  //! Computes  the  value   on the  algorithmic    patch at
  //! parameters U and V.
  Standard_EXPORT   gp_Pnt Value (const Standard_Real U, const Standard_Real V)  const;
  
  //! Computes   the  d/dU   partial   derivative  on    the
  //! algorithmic patch at parameters U and V.
  Standard_EXPORT   gp_Vec D1U (const Standard_Real U, const Standard_Real V)  const;
  
  //! Computes    the  d/dV    partial    derivative on  the
  //! algorithmic patch at parameters U and V.
  Standard_EXPORT   gp_Vec D1V (const Standard_Real U, const Standard_Real V)  const;
  
  //! Computes the   d2/dUdV  partial  derivative   on   the
  //! algorithmic  patch made with linear blending functions
  //! at parameter U and V.
  Standard_EXPORT   gp_Vec DUV (const Standard_Real U, const Standard_Real V)  const;
  
  Standard_EXPORT  const  gp_Pnt& Corner (const Standard_Integer I)  const;
  
  Standard_EXPORT  const  Handle(GeomFill_Boundary)& Bound (const Standard_Integer I)  const;
  
  Standard_EXPORT  const  Handle(Law_Function)& Func (const Standard_Integer I)  const;




  DEFINE_STANDARD_RTTI(GeomFill_CoonsAlgPatch)

protected:




private: 


  Handle(GeomFill_Boundary) bound[4];
  gp_Pnt c[4];
  Handle(Law_Function) a[2];


};







#endif // _GeomFill_CoonsAlgPatch_HeaderFile