summaryrefslogtreecommitdiff
path: root/inc/ShapeFix_FixSmallFace.hxx
blob: d4b92d5c30f4a644a8e576801d4d9411cb49351d (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 _ShapeFix_FixSmallFace_HeaderFile
#define _ShapeFix_FixSmallFace_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_ShapeFix_FixSmallFace_HeaderFile
#include <Handle_ShapeFix_FixSmallFace.hxx>
#endif

#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _ShapeAnalysis_CheckSmallFace_HeaderFile
#include <ShapeAnalysis_CheckSmallFace.hxx>
#endif
#ifndef _ShapeFix_Root_HeaderFile
#include <ShapeFix_Root.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class TopoDS_Shape;
class TopoDS_Face;
class TopoDS_Edge;
class TopoDS_Compound;



class ShapeFix_FixSmallFace : public ShapeFix_Root {

public:

  
  Standard_EXPORT   ShapeFix_FixSmallFace();
  
  Standard_EXPORT     void Init(const TopoDS_Shape& S) ;
  
//! Fixing case of spot face <br>
  Standard_EXPORT     void Perform() ;
  //! Fixing case of spot face, if tol = -1 used local tolerance. <br>
  Standard_EXPORT     TopoDS_Shape FixSpotFace() ;
  //! Compute average vertex and replacing vertices by new one. <br>
  Standard_EXPORT     Standard_Boolean ReplaceVerticesInCaseOfSpot(TopoDS_Face& F,const Standard_Real tol) const;
  //! Remove spot face from compound <br>
  Standard_EXPORT     Standard_Boolean RemoveFacesInCaseOfSpot(const TopoDS_Face& F) const;
  //! Fixing case of strip face, if tol = -1 used local tolerance <br>
  Standard_EXPORT     TopoDS_Shape FixStripFace(const Standard_Boolean wasdone = Standard_False) ;
  //! Replace veretces and edges. <br>
  Standard_EXPORT     Standard_Boolean ReplaceInCaseOfStrip(TopoDS_Face& F,TopoDS_Edge& E1,TopoDS_Edge& E2,const Standard_Real tol) const;
  //! Remove strip face from compound. <br>
  Standard_EXPORT     Standard_Boolean RemoveFacesInCaseOfStrip(const TopoDS_Face& F) const;
  //! Compute average edge for strip face <br>
  Standard_EXPORT     TopoDS_Edge ComputeSharedEdgeForStripFace(const TopoDS_Face& F,const TopoDS_Edge& E1,const TopoDS_Edge& E2,const TopoDS_Face& F1,const Standard_Real tol) const;
  
  Standard_EXPORT     TopoDS_Shape FixSplitFace(const TopoDS_Shape& S) ;
  //! Split faces by splitting vertices <br>
  Standard_EXPORT     TopoDS_Shape SplitFaces() ;
  //! Compute data for face splitting. <br>
  Standard_EXPORT     Standard_Boolean SplitOneFace(TopoDS_Face& F,TopoDS_Compound& theSplittedFaces) ;
  //! Remove small faces from compound. <br>
  Standard_EXPORT     TopoDS_Shape RemoveSmallFaces() ;
  
  Standard_EXPORT     TopoDS_Face FixFace(const TopoDS_Face& F) ;
  
  Standard_EXPORT     TopoDS_Shape FixShape() ;
  
  Standard_EXPORT     TopoDS_Shape Shape() ;
  
  Standard_EXPORT     Standard_Boolean FixPinFace(TopoDS_Face& F) ;




  DEFINE_STANDARD_RTTI(ShapeFix_FixSmallFace)

protected:




private: 


TopoDS_Shape myShape;
TopoDS_Shape myResult;
Standard_Integer myStatus;
ShapeAnalysis_CheckSmallFace myAnalyzer;


};





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


#endif