summaryrefslogtreecommitdiff
path: root/inc/LocOpe_SplitDrafts.hxx
blob: bf15eea048a61a9a127fb015e85b479a3150eb0a (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
127
128
129
130
131
132
133
// 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 _LocOpe_SplitDrafts_HeaderFile
#define _LocOpe_SplitDrafts_HeaderFile

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

#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class StdFail_NotDone;
class Standard_NoSuchObject;
class Standard_ConstructionError;
class Standard_NullObject;
class TopoDS_Shape;
class TopoDS_Face;
class TopoDS_Wire;
class gp_Dir;
class gp_Pln;
class TopTools_ListOfShape;


//! This  class  provides  a    tool to   realize  the <br>
//!          following operations on a shape : <br>
//!           - split a face of the shape with a wire, <br>
//!           - put draft angle on both side of the wire. <br>
//!          For each side, the draft angle may be different. <br>
class LocOpe_SplitDrafts  {
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); 
  }

  //! Empty constructor. <br>
      LocOpe_SplitDrafts();
  //! Creates the algoritm on the shape <S>. <br>
      LocOpe_SplitDrafts(const TopoDS_Shape& S);
  //! Initializes the algoritm with the shape <S>. <br>
  Standard_EXPORT     void Init(const TopoDS_Shape& S) ;
  //! Splits the face <F> of the former given shape with <br>
//!          the wire  <W>.  The wire is  assumed to lie on the <br>
//!          face.    Puts a draft  angle on  both parts of the <br>
//!          wire.    <Extractg>,  <Nplg>, <Angleg> define  the <br>
//!          arguments  for   the   left  part   of the   wire. <br>
//!          <Extractd>,  <Npld>, <Angled> define the arguments <br>
//!          for the right part of the wire. The draft angle is <br>
//!          measured    with the  direction  <Extract>.  <Npl> <br>
//!          defines the neutral plane (points belonging to the <br>
//!          neutral plane are not  modified).  <Angle> is  the <br>
//!          value of the draft  angle.  If <ModifyLeft> is set <br>
//!          to <Standard_False>, no draft  angle is applied to <br>
//!          the left part of the wire. If <ModifyRight> is set <br>
//!          to <Standard_False>,no draft  angle  is applied to <br>
//!          the right part of the wire. <br>
//! <br>
//! <br>
  Standard_EXPORT     void Perform(const TopoDS_Face& F,const TopoDS_Wire& W,const gp_Dir& Extractg,const gp_Pln& NPlg,const Standard_Real Angleg,const gp_Dir& Extractd,const gp_Pln& NPld,const Standard_Real Angled,const Standard_Boolean ModifyLeft = Standard_True,const Standard_Boolean ModifyRight = Standard_True) ;
  //! Splits the face <F> of the former given shape with <br>
//!          the  wire <W>.  The wire is  assumed to lie on the <br>
//!          face.  Puts a draft angle  on the left part of the <br>
//!          wire.   The draft    angle is   measured  with the <br>
//!          direction  <Extract>.   <Npl> defines the  neutral <br>
//!          plane (points belonging  to the neutral plane  are <br>
//!          not modified). <Angle> is  the value of  the draft <br>
//!          angle. <br>
  Standard_EXPORT     void Perform(const TopoDS_Face& F,const TopoDS_Wire& W,const gp_Dir& Extract,const gp_Pln& NPl,const Standard_Real Angle) ;
  //! Returns <Standard_True>  if the  modification  has <br>
//!          been succesfully performed. <br>
        Standard_Boolean IsDone() const;
  
       const TopoDS_Shape& OriginalShape() const;
  //! Returns the modified shape. <br>
  Standard_EXPORT    const TopoDS_Shape& Shape() const;
  //! Manages the descendant shapes. <br>
  Standard_EXPORT    const TopTools_ListOfShape& ShapesFromShape(const TopoDS_Shape& S) const;





protected:





private:



TopoDS_Shape myShape;
TopoDS_Shape myResult;
TopTools_DataMapOfShapeListOfShape myMap;


};


#include <LocOpe_SplitDrafts.lxx>



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


#endif