forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBRepIntCurveSurface.i
More file actions
174 lines (140 loc) · 4.8 KB
/
BRepIntCurveSurface.i
File metadata and controls
174 lines (140 loc) · 4.8 KB
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/*
Copyright 2008-2017 Thomas Paviot (tpaviot@gmail.com)
This file is part of pythonOCC.
pythonOCC is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
pythonOCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with pythonOCC. If not, see <http://www.gnu.org/licenses/>.
*/
%define BREPINTCURVESURFACEDOCSTRING
"Inttantiates IntCurveSurface with Surfaces from BRep
and Curves from Adaptor
-Level: Public
All the methods of the classes of this package are public.
"
%enddef
%module (package="OCC.Core", docstring=BREPINTCURVESURFACEDOCSTRING) BRepIntCurveSurface
#pragma SWIG nowarn=504,325,503
%{
#ifdef WNT
#pragma warning(disable : 4716)
#endif
%}
%include ../common/CommonIncludes.i
%include ../common/ExceptionCatcher.i
%include ../common/FunctionTransformers.i
%include ../common/Operators.i
%include ../common/OccHandle.i
%include BRepIntCurveSurface_headers.i
/* typedefs */
/* end typedefs declaration */
/* public enums */
/* end public enums declaration */
%nodefaultctor BRepIntCurveSurface_Inter;
class BRepIntCurveSurface_Inter {
public:
%feature("compactdefaultargs") BRepIntCurveSurface_Inter;
%feature("autodoc", " * Empty constructor;
:rtype: None
") BRepIntCurveSurface_Inter;
BRepIntCurveSurface_Inter ();
%feature("compactdefaultargs") Init;
%feature("autodoc", " * Load the Shape, the curve and initialize the tolerance used for the classification.
:param theShape:
:type theShape: TopoDS_Shape &
:param theCurve:
:type theCurve: GeomAdaptor_Curve &
:param theTol:
:type theTol: float
:rtype: None
") Init;
void Init (const TopoDS_Shape & theShape,const GeomAdaptor_Curve & theCurve,const Standard_Real theTol);
%feature("compactdefaultargs") Init;
%feature("autodoc", " * Load the Shape, the curve and initialize the tolerance used for the classification.
:param theShape:
:type theShape: TopoDS_Shape &
:param theLine:
:type theLine: gp_Lin
:param theTol:
:type theTol: float
:rtype: None
") Init;
void Init (const TopoDS_Shape & theShape,const gp_Lin & theLine,const Standard_Real theTol);
%feature("compactdefaultargs") Load;
%feature("autodoc", " * Load the Shape, and initialize the tolerance used for the classification.
:param theShape:
:type theShape: TopoDS_Shape &
:param theTol:
:type theTol: float
:rtype: None
") Load;
void Load (const TopoDS_Shape & theShape,const Standard_Real theTol);
%feature("compactdefaultargs") Init;
%feature("autodoc", " * Method to find intersections of specified curve with loaded shape.
:param theCurve:
:type theCurve: GeomAdaptor_Curve &
:rtype: None
") Init;
void Init (const GeomAdaptor_Curve & theCurve);
%feature("compactdefaultargs") More;
%feature("autodoc", " * returns True if there is a current face.
:rtype: bool
") More;
Standard_Boolean More ();
%feature("compactdefaultargs") Next;
%feature("autodoc", " * Sets the next intersection point to check.
:rtype: None
") Next;
void Next ();
%feature("compactdefaultargs") Point;
%feature("autodoc", " * returns the current Intersection point.
:rtype: IntCurveSurface_IntersectionPoint
") Point;
IntCurveSurface_IntersectionPoint Point ();
%feature("compactdefaultargs") Pnt;
%feature("autodoc", " * returns the current geometric Point
:rtype: gp_Pnt
") Pnt;
const gp_Pnt Pnt ();
%feature("compactdefaultargs") U;
%feature("autodoc", " * returns the U parameter of the current point on the current face.
:rtype: float
") U;
Standard_Real U ();
%feature("compactdefaultargs") V;
%feature("autodoc", " * returns the V parameter of the current point on the current face.
:rtype: float
") V;
Standard_Real V ();
%feature("compactdefaultargs") W;
%feature("autodoc", " * returns the parameter of the current point on the curve.
:rtype: float
") W;
Standard_Real W ();
%feature("compactdefaultargs") State;
%feature("autodoc", " * returns the current state (IN or ON)
:rtype: TopAbs_State
") State;
TopAbs_State State ();
%feature("compactdefaultargs") Transition;
%feature("autodoc", " * returns the transition of the line on the surface (IN or OUT or UNKNOWN)
:rtype: IntCurveSurface_TransitionOnCurve
") Transition;
IntCurveSurface_TransitionOnCurve Transition ();
%feature("compactdefaultargs") Face;
%feature("autodoc", " * returns the current face.
:rtype: TopoDS_Face
") Face;
const TopoDS_Face Face ();
};
%extend BRepIntCurveSurface_Inter {
%pythoncode {
__repr__ = _dumps_object
}
};