blob: 48800e2e378c42a03cee8ca5f415d16082e1d37a (
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
|
// 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_FaceDivide_HeaderFile
#define _ShapeUpgrade_FaceDivide_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_ShapeUpgrade_FaceDivide_HeaderFile
#include <Handle_ShapeUpgrade_FaceDivide.hxx>
#endif
#ifndef _Handle_ShapeUpgrade_SplitSurface_HeaderFile
#include <Handle_ShapeUpgrade_SplitSurface.hxx>
#endif
#ifndef _Handle_ShapeUpgrade_WireDivide_HeaderFile
#include <Handle_ShapeUpgrade_WireDivide.hxx>
#endif
#ifndef _TopoDS_Face_HeaderFile
#include <TopoDS_Face.hxx>
#endif
#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _ShapeUpgrade_Tool_HeaderFile
#include <ShapeUpgrade_Tool.hxx>
#endif
#ifndef _ShapeExtend_Status_HeaderFile
#include <ShapeExtend_Status.hxx>
#endif
class ShapeUpgrade_SplitSurface;
class ShapeUpgrade_WireDivide;
class TopoDS_Face;
class TopoDS_Shape;
//! Divides a Face (both edges in the wires, by splitting <br>
//! curves and pcurves, and the face itself, by splitting <br>
//! supporting surface) according to splitting criteria. <br>
//! * The domain of the face to divide is defined by the PCurves <br>
//! of the wires on the Face. <br>
class ShapeUpgrade_FaceDivide : public ShapeUpgrade_Tool {
public:
//! Creates empty constructor. <br>
Standard_EXPORT ShapeUpgrade_FaceDivide();
//! Initialize by a Face. <br>
Standard_EXPORT ShapeUpgrade_FaceDivide(const TopoDS_Face& F);
//! Initialize by a Face. <br>
Standard_EXPORT void Init(const TopoDS_Face& F) ;
//! Purpose sets mode for trimming (segment) surface by <br>
//! wire UV bounds. <br>
Standard_EXPORT void SetSurfaceSegmentMode(const Standard_Boolean Segment) ;
//! Performs splitting and computes the resulting shell <br>
//! The context is used to keep track of former splittings <br>
//! in order to keep sharings. It is updated according to <br>
//! modifications made. <br>
Standard_EXPORT virtual Standard_Boolean Perform() ;
//! Performs splitting of surface and computes the shell <br>
//! from source face. <br>
Standard_EXPORT virtual Standard_Boolean SplitSurface() ;
//! Performs splitting of curves of all the edges in the <br>
//! shape and divides these edges. <br>
Standard_EXPORT virtual Standard_Boolean SplitCurves() ;
//! Gives the resulting Shell, or Face, or Null shape if not done. <br>
Standard_EXPORT TopoDS_Shape Result() const;
//! Queries the status of last call to Perform <br>
//! OK : no splitting was done (or no call to Perform) <br>
//! DONE1: some edges were splitted <br>
//! DONE2: surface was splitted <br>
//! DONE3: surface was modified without splitting <br>
//! FAIL1: some fails encountered during splitting wires <br>
//! FAIL2: face cannot be splitted <br>
Standard_EXPORT Standard_Boolean Status(const ShapeExtend_Status status) const;
//! Sets the tool for splitting surfaces. <br>
Standard_EXPORT void SetSplitSurfaceTool(const Handle(ShapeUpgrade_SplitSurface)& splitSurfaceTool) ;
//! Sets the tool for dividing edges on Face. <br>
Standard_EXPORT void SetWireDivideTool(const Handle(ShapeUpgrade_WireDivide)& wireDivideTool) ;
//! Returns the tool for dividing edges on Face. <br>
//! This tool must be already initialized. <br>
Standard_EXPORT virtual Handle_ShapeUpgrade_WireDivide GetWireDivideTool() const;
DEFINE_STANDARD_RTTI(ShapeUpgrade_FaceDivide)
protected:
//! Returns the tool for splitting surfaces. <br>
//! This tool must be already initialized. <br>
Standard_EXPORT virtual Handle_ShapeUpgrade_SplitSurface GetSplitSurfaceTool() const;
TopoDS_Face myFace;
TopoDS_Shape myResult;
Standard_Boolean mySegmentMode;
Standard_Integer myStatus;
private:
Handle_ShapeUpgrade_SplitSurface mySplitSurfaceTool;
Handle_ShapeUpgrade_WireDivide myWireDivideTool;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|