summaryrefslogtreecommitdiff
path: root/inc/BRepFill_CompatibleWires.hxx
blob: 58655e3eb4d876ed5f94dafaee27f58113167cfb (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
125
126
// 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 _BRepFill_CompatibleWires_HeaderFile
#define _BRepFill_CompatibleWires_HeaderFile

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

#ifndef _TopTools_SequenceOfShape_HeaderFile
#include <TopTools_SequenceOfShape.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#endif
class Standard_ConstructionError;
class Standard_NoSuchObject;
class TopTools_SequenceOfShape;
class TopTools_ListOfShape;
class TopoDS_Edge;
class TopTools_DataMapOfShapeListOfShape;


//! Constructs a sequence of Wires agreed each other <br>
//!          so that the surface passing through these sections <br>
//!           is not twisted <br>
class BRepFill_CompatibleWires  {
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   BRepFill_CompatibleWires();
  
  Standard_EXPORT   BRepFill_CompatibleWires(const TopTools_SequenceOfShape& Sections);
  
  Standard_EXPORT     void Init(const TopTools_SequenceOfShape& Sections) ;
  
  Standard_EXPORT     void SetPercent(const Standard_Real percent = 0.01) ;
  //! Performs  CompatibleWires According  to  the orientation <br>
//!          and the origin of  each other <br>
  Standard_EXPORT     void Perform(const Standard_Boolean WithRotation = Standard_True) ;
  
  Standard_EXPORT     Standard_Boolean IsDone() const;
  //! returns the generated sequence. <br>
  Standard_EXPORT    const TopTools_SequenceOfShape& Shape() const;
  //! Returns   the  shapes  created  from   a  subshape <br>
//!          <SubSection> of a section. <br>
//! <br>
  Standard_EXPORT    const TopTools_ListOfShape& GeneratedShapes(const TopoDS_Edge& SubSection) const;
  
  Standard_EXPORT    const TopTools_DataMapOfShapeListOfShape& Generated() const;





protected:





private:

  //!  Insert cutting  points  on  closed wires to  have same <br>
//!          number of edges. The sequence of shapes must <br>
//!          be a sequence of wires. <br>
  Standard_EXPORT     void SameNumberByPolarMethod(const Standard_Boolean WithRotation = Standard_True) ;
  //!  Insert cutting  points  on  open wires to  have same <br>
//!          number of edges. The sequence of shapes must <br>
//!          be a sequence of wires. <br>
  Standard_EXPORT     void SameNumberByACR(const Standard_Boolean report) ;
  //!  Computes  origins and orientation  on closed wires to <br>
//!          avoid twisted results. The sequence of shapes must <br>
//!          be a sequence of wires. <polar> must be true <br>
//!          if SameNumberByPolarMethod was used before. <br>
  Standard_EXPORT     void ComputeOrigin(const Standard_Boolean polar) ;
  //!  Computes  origins and orientation  on open wires to <br>
//!          avoid twisted results. The sequence of shapes must <br>
//!          be a sequence of wires. <br>
  Standard_EXPORT     void SearchOrigin() ;


TopTools_SequenceOfShape myInit;
TopTools_SequenceOfShape myWork;
Standard_Real myPercent;
Standard_Boolean myDegen1;
Standard_Boolean myDegen2;
Standard_Boolean myIsDone;
TopTools_DataMapOfShapeListOfShape myMap;


};





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


#endif