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_IntersectionTool_HeaderFile
#define _ShapeFix_IntersectionTool_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Handle_ShapeBuild_ReShape_HeaderFile
#include <Handle_ShapeBuild_ReShape.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_ShapeExtend_WireData_HeaderFile
#include <Handle_ShapeExtend_WireData.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_Geom2d_Curve_HeaderFile
#include <Handle_Geom2d_Curve.hxx>
#endif
class ShapeBuild_ReShape;
class TopoDS_Edge;
class TopoDS_Vertex;
class TopoDS_Face;
class ShapeExtend_WireData;
class ShapeFix_DataMapOfShapeBox2d;
class Bnd_Box2d;
class Geom2d_Curve;
//! Tool for fixing selfintersecting wire <br>
//! and intersecting wires <br>
class ShapeFix_IntersectionTool {
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);
}
//! Constructor <br>
Standard_EXPORT ShapeFix_IntersectionTool(const Handle(ShapeBuild_ReShape)& context,const Standard_Real preci,const Standard_Real maxtol = 1.0);
//! Returns context <br>
Handle_ShapeBuild_ReShape Context() const;
//! Split edge on two new edges using new vertex "vert" <br>
//! and "param" - parameter for splitting <br>
//! The "face" is necessary for pcurves and using TransferParameterProj <br>
Standard_EXPORT Standard_Boolean SplitEdge(const TopoDS_Edge& edge,const Standard_Real param,const TopoDS_Vertex& vert,const TopoDS_Face& face,TopoDS_Edge& newE1,TopoDS_Edge& newE2,const Standard_Real preci) const;
//! Cut edge by parameters pend and cut <br>
Standard_EXPORT Standard_Boolean CutEdge(const TopoDS_Edge& edge,const Standard_Real pend,const Standard_Real cut,const TopoDS_Face& face,Standard_Boolean& iscutline) const;
Standard_EXPORT Standard_Boolean FixSelfIntersectWire(Handle(ShapeExtend_WireData)& sewd,const TopoDS_Face& face,Standard_Integer& NbSplit,Standard_Integer& NbCut,Standard_Integer& NbRemoved) const;
Standard_EXPORT Standard_Boolean FixIntersectingWires(TopoDS_Face& face) const;
protected:
private:
Standard_EXPORT Standard_Boolean SplitEdge1(const Handle(ShapeExtend_WireData)& sewd,const TopoDS_Face& face,const Standard_Integer num,const Standard_Real param,const TopoDS_Vertex& vert,const Standard_Real preci,ShapeFix_DataMapOfShapeBox2d& boxes) const;
Standard_EXPORT Standard_Boolean SplitEdge2(const Handle(ShapeExtend_WireData)& sewd,const TopoDS_Face& face,const Standard_Integer num,const Standard_Real param1,const Standard_Real param2,const TopoDS_Vertex& vert,const Standard_Real preci,ShapeFix_DataMapOfShapeBox2d& boxes) const;
Standard_EXPORT Standard_Boolean UnionVertexes(const Handle(ShapeExtend_WireData)& sewd,TopoDS_Edge& edge1,TopoDS_Edge& edge2,const Standard_Integer num2,ShapeFix_DataMapOfShapeBox2d& boxes,const Bnd_Box2d& B2) const;
Standard_EXPORT Standard_Boolean FindVertAndSplitEdge(const Standard_Real param1,const TopoDS_Edge& edge1,const TopoDS_Edge& edge2,const Handle(Geom2d_Curve)& Crv1,Standard_Real& MaxTolVert,Standard_Integer& num1,const Handle(ShapeExtend_WireData)& sewd,const TopoDS_Face& face,ShapeFix_DataMapOfShapeBox2d& boxes,const Standard_Boolean aTmpKey) const;
Handle_ShapeBuild_ReShape myContext;
Standard_Real myPreci;
Standard_Real myMaxTol;
};
#include <ShapeFix_IntersectionTool.lxx>
// other Inline functions and methods (like "C++: function call" methods)
#endif
|