summaryrefslogtreecommitdiff
path: root/inc/ShapeUpgrade_ShapeDivideContinuity.hxx
blob: a306770466b1bb4381a0af21c862a3e9ace708b0 (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
// 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 _ShapeUpgrade_ShapeDivideContinuity_HeaderFile
#define _ShapeUpgrade_ShapeDivideContinuity_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _GeomAbs_Shape_HeaderFile
#include <GeomAbs_Shape.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _ShapeUpgrade_ShapeDivide_HeaderFile
#include <ShapeUpgrade_ShapeDivide.hxx>
#endif
#ifndef _Handle_ShapeUpgrade_FaceDivide_HeaderFile
#include <Handle_ShapeUpgrade_FaceDivide.hxx>
#endif
class TopoDS_Shape;
class ShapeUpgrade_FaceDivide;



class ShapeUpgrade_ShapeDivideContinuity  : public ShapeUpgrade_ShapeDivide {
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   ShapeUpgrade_ShapeDivideContinuity();
  //! Initialize by a Shape. <br>
  Standard_EXPORT   ShapeUpgrade_ShapeDivideContinuity(const TopoDS_Shape& S);
  //! Sets tolerance. <br>
  Standard_EXPORT     void SetTolerance(const Standard_Real Tol) ;
  //! Sets tolerance. <br>
  Standard_EXPORT     void SetTolerance2d(const Standard_Real Tol) ;
  
//!  Defines a criterion of continuity for the boundary (all the <br>
//!  Wires) <br>
//! <br>
//!  The possible values are C0, G1, C1, G2, C2, C3, CN The <br>
//!  default is C1 to respect the Cas.Cade Shape Validity.  G1 <br>
//!  and G2 are not authorized. <br>
  Standard_EXPORT     void SetBoundaryCriterion(const GeomAbs_Shape Criterion = GeomAbs_C1) ;
  
//!  Defines a criterion of continuity for the boundary (all the <br>
//!  pcurves of Wires) <br>
//! <br>
//!  The possible values are C0, G1, C1, G2, C2, C3, CN The <br>
//!  default is C1 to respect the Cas.Cade Shape Validity.  G1 <br>
//!  and G2 are not authorized. <br>
  Standard_EXPORT     void SetPCurveCriterion(const GeomAbs_Shape Criterion = GeomAbs_C1) ;
  
//!  Defines a criterion of continuity for the boundary (all the <br>
//!  Wires) <br>
//! <br>
//!  The possible values are C0, G1, C1, G2, C2, C3, CN The <br>
//!  default is C1 to respect the Cas.Cade Shape Validity.  G1 <br>
//!  and G2 are not authorized. <br>
  Standard_EXPORT     void SetSurfaceCriterion(const GeomAbs_Shape Criterion = GeomAbs_C1) ;





protected:

  //! Returns the tool for dividing faces. <br>
  Standard_EXPORT   virtual  Handle_ShapeUpgrade_FaceDivide GetSplitFaceTool() const;




private:



GeomAbs_Shape myCurve3dCriterion;
GeomAbs_Shape myCurve2dCriterion;
GeomAbs_Shape mySurfaceCriterion;
Standard_Real myTolerance3d;
Standard_Real myTolerance2d;


};





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


#endif