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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <BRepTopAdaptor_TopolTool.hxx>
#include <IntCurveSurface_HInter.hxx>
#include <Adaptor2d_Curve2d.hxx>
// module includes
#include <IntCurvesFace_Intersector.hxx>
#include <IntCurvesFace_ShapeIntersector.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_IntCurvesFace(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("IntCurvesFace"));
py::object klass;
//Python trampoline classes
// classes
// Class IntCurvesFace_Intersector from ./opencascade/IntCurvesFace_Intersector.hxx
klass = m.attr("IntCurvesFace_Intersector");
// nested enums
static_cast<py::class_<IntCurvesFace_Intersector ,opencascade::handle<IntCurvesFace_Intersector> , Standard_Transient >>(klass)
// constructors
.def(py::init< const TopoDS_Face &,const Standard_Real,const Standard_Boolean,const Standard_Boolean >() , py::arg("F"), py::arg("aTol"), py::arg("aRestr")=static_cast<const Standard_Boolean>(Standard_True), py::arg("UseBToler")=static_cast<const Standard_Boolean>(Standard_True) )
// custom constructors
// methods
.def("Perform",
(void (IntCurvesFace_Intersector::*)( const gp_Lin & , const Standard_Real , const Standard_Real ) ) static_cast<void (IntCurvesFace_Intersector::*)( const gp_Lin & , const Standard_Real , const Standard_Real ) >(&IntCurvesFace_Intersector::Perform),
R"#(Perform the intersection between the segment L and the loaded face.)#" , py::arg("L"), py::arg("PInf"), py::arg("PSup")
)
.def("Perform",
(void (IntCurvesFace_Intersector::*)( const opencascade::handle<Adaptor3d_Curve> & , const Standard_Real , const Standard_Real ) ) static_cast<void (IntCurvesFace_Intersector::*)( const opencascade::handle<Adaptor3d_Curve> & , const Standard_Real , const Standard_Real ) >(&IntCurvesFace_Intersector::Perform),
R"#(same method for a HCurve from Adaptor3d. PInf an PSup can also be - and + INF.)#" , py::arg("HCu"), py::arg("PInf"), py::arg("PSup")
)
.def("SurfaceType",
(GeomAbs_SurfaceType (IntCurvesFace_Intersector::*)() const) static_cast<GeomAbs_SurfaceType (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::SurfaceType),
R"#(Return the surface type)#"
)
.def("IsDone",
(Standard_Boolean (IntCurvesFace_Intersector::*)() const) static_cast<Standard_Boolean (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::IsDone),
R"#(True is returned when the intersection have been computed.)#"
)
.def("NbPnt",
(Standard_Integer (IntCurvesFace_Intersector::*)() const) static_cast<Standard_Integer (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::NbPnt),
R"#(None)#"
)
.def("UParameter",
(Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::UParameter),
R"#(Returns the U parameter of the ith intersection point on the surface.)#" , py::arg("I")
)
.def("VParameter",
(Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::VParameter),
R"#(Returns the V parameter of the ith intersection point on the surface.)#" , py::arg("I")
)
.def("WParameter",
(Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::WParameter),
R"#(Returns the parameter of the ith intersection point on the line.)#" , py::arg("I")
)
.def("Pnt",
(const gp_Pnt & (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<const gp_Pnt & (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::Pnt),
R"#(Returns the geometric point of the ith intersection between the line and the surface.)#" , py::arg("I")
)
.def("Transition",
(IntCurveSurface_TransitionOnCurve (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<IntCurveSurface_TransitionOnCurve (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::Transition),
R"#(Returns the ith transition of the line on the surface.)#" , py::arg("I")
)
.def("State",
(TopAbs_State (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<TopAbs_State (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::State),
R"#(Returns the ith state of the point on the face. The values can be either TopAbs_IN ( the point is in the face) or TopAbs_ON ( the point is on a boundary of the face).)#" , py::arg("I")
)
.def("IsParallel",
(Standard_Boolean (IntCurvesFace_Intersector::*)() const) static_cast<Standard_Boolean (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::IsParallel),
R"#(Returns true if curve is parallel or belongs face surface This case is recognized only for some pairs of analytical curves and surfaces (plane - line, ...))#"
)
.def("ClassifyUVPoint",
(TopAbs_State (IntCurvesFace_Intersector::*)( const gp_Pnt2d & ) const) static_cast<TopAbs_State (IntCurvesFace_Intersector::*)( const gp_Pnt2d & ) const>(&IntCurvesFace_Intersector::ClassifyUVPoint),
R"#(None)#" , py::arg("Puv")
)
.def("Bounding",
(Bnd_Box (IntCurvesFace_Intersector::*)() const) static_cast<Bnd_Box (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::Bounding),
R"#(None)#"
)
.def("SetUseBoundToler",
(void (IntCurvesFace_Intersector::*)( Standard_Boolean ) ) static_cast<void (IntCurvesFace_Intersector::*)( Standard_Boolean ) >(&IntCurvesFace_Intersector::SetUseBoundToler),
R"#(Sets the boundary tolerance flag)#" , py::arg("UseBToler")
)
.def("GetUseBoundToler",
(Standard_Boolean (IntCurvesFace_Intersector::*)() const) static_cast<Standard_Boolean (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::GetUseBoundToler),
R"#(Returns the boundary tolerance flag)#"
)
.def("IsDone",
(Standard_Boolean (IntCurvesFace_Intersector::*)() const) static_cast<Standard_Boolean (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::IsDone),
R"#(True is returned when the intersection have been computed.)#"
)
.def("NbPnt",
(Standard_Integer (IntCurvesFace_Intersector::*)() const) static_cast<Standard_Integer (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::NbPnt),
R"#(None)#"
)
.def("Pnt",
(const gp_Pnt & (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<const gp_Pnt & (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::Pnt),
R"#(Returns the geometric point of the ith intersection between the line and the surface.)#" , py::arg("i")
)
.def("UParameter",
(Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::UParameter),
R"#(Returns the U parameter of the ith intersection point on the surface.)#" , py::arg("i")
)
.def("VParameter",
(Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::VParameter),
R"#(Returns the V parameter of the ith intersection point on the surface.)#" , py::arg("i")
)
.def("WParameter",
(Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::WParameter),
R"#(Returns the parameter of the ith intersection point on the line.)#" , py::arg("i")
)
.def("Transition",
(IntCurveSurface_TransitionOnCurve (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<IntCurveSurface_TransitionOnCurve (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::Transition),
R"#(Returns the ith transition of the line on the surface.)#" , py::arg("i")
)
.def("State",
(TopAbs_State (IntCurvesFace_Intersector::*)( const Standard_Integer ) const) static_cast<TopAbs_State (IntCurvesFace_Intersector::*)( const Standard_Integer ) const>(&IntCurvesFace_Intersector::State),
R"#(Returns the ith state of the point on the face. The values can be either TopAbs_IN ( the point is in the face) or TopAbs_ON ( the point is on a boundary of the face).)#" , py::arg("i")
)
.def("IsParallel",
(Standard_Boolean (IntCurvesFace_Intersector::*)() const) static_cast<Standard_Boolean (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::IsParallel),
R"#(Returns true if curve is parallel or belongs face surface This case is recognized only for some pairs of analytical curves and surfaces (plane - line, ...))#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IntCurvesFace_Intersector::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IntCurvesFace_Intersector::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (IntCurvesFace_Intersector::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::DynamicType),
R"#(None)#"
)
.def("Face",
(const TopoDS_Face & (IntCurvesFace_Intersector::*)() const) static_cast<const TopoDS_Face & (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::Face),
R"#(Returns the significant face used to determine the intersection.)#"
)
.def("Face",
(const TopoDS_Face & (IntCurvesFace_Intersector::*)() const) static_cast<const TopoDS_Face & (IntCurvesFace_Intersector::*)() const>(&IntCurvesFace_Intersector::Face),
R"#(Returns the significant face used to determine the intersection.)#"
)
;
// Class IntCurvesFace_ShapeIntersector from ./opencascade/IntCurvesFace_ShapeIntersector.hxx
klass = m.attr("IntCurvesFace_ShapeIntersector");
// nested enums
static_cast<py::class_<IntCurvesFace_ShapeIntersector , shared_ptr<IntCurvesFace_ShapeIntersector> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Load",
(void (IntCurvesFace_ShapeIntersector::*)( const TopoDS_Shape & , const Standard_Real ) ) static_cast<void (IntCurvesFace_ShapeIntersector::*)( const TopoDS_Shape & , const Standard_Real ) >(&IntCurvesFace_ShapeIntersector::Load),
R"#(None)#" , py::arg("Sh"), py::arg("Tol")
)
.def("Perform",
(void (IntCurvesFace_ShapeIntersector::*)( const gp_Lin & , const Standard_Real , const Standard_Real ) ) static_cast<void (IntCurvesFace_ShapeIntersector::*)( const gp_Lin & , const Standard_Real , const Standard_Real ) >(&IntCurvesFace_ShapeIntersector::Perform),
R"#(Perform the intersection between the segment L and the loaded shape.)#" , py::arg("L"), py::arg("PInf"), py::arg("PSup")
)
.def("PerformNearest",
(void (IntCurvesFace_ShapeIntersector::*)( const gp_Lin & , const Standard_Real , const Standard_Real ) ) static_cast<void (IntCurvesFace_ShapeIntersector::*)( const gp_Lin & , const Standard_Real , const Standard_Real ) >(&IntCurvesFace_ShapeIntersector::PerformNearest),
R"#(Perform the intersection between the segment L and the loaded shape.)#" , py::arg("L"), py::arg("PInf"), py::arg("PSup")
)
.def("Perform",
(void (IntCurvesFace_ShapeIntersector::*)( const opencascade::handle<Adaptor3d_Curve> & , const Standard_Real , const Standard_Real ) ) static_cast<void (IntCurvesFace_ShapeIntersector::*)( const opencascade::handle<Adaptor3d_Curve> & , const Standard_Real , const Standard_Real ) >(&IntCurvesFace_ShapeIntersector::Perform),
R"#(same method for a HCurve from Adaptor3d. PInf an PSup can also be -INF and +INF.)#" , py::arg("HCu"), py::arg("PInf"), py::arg("PSup")
)
.def("IsDone",
(Standard_Boolean (IntCurvesFace_ShapeIntersector::*)() const) static_cast<Standard_Boolean (IntCurvesFace_ShapeIntersector::*)() const>(&IntCurvesFace_ShapeIntersector::IsDone),
R"#(True when the intersection has been computed.)#"
)
.def("NbPnt",
(Standard_Integer (IntCurvesFace_ShapeIntersector::*)() const) static_cast<Standard_Integer (IntCurvesFace_ShapeIntersector::*)() const>(&IntCurvesFace_ShapeIntersector::NbPnt),
R"#(Returns the number of the intersection points)#"
)
.def("UParameter",
(Standard_Real (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const>(&IntCurvesFace_ShapeIntersector::UParameter),
R"#(Returns the U parameter of the ith intersection point on the surface.)#" , py::arg("I")
)
.def("VParameter",
(Standard_Real (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const>(&IntCurvesFace_ShapeIntersector::VParameter),
R"#(Returns the V parameter of the ith intersection point on the surface.)#" , py::arg("I")
)
.def("WParameter",
(Standard_Real (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const) static_cast<Standard_Real (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const>(&IntCurvesFace_ShapeIntersector::WParameter),
R"#(Returns the parameter of the ith intersection point on the line.)#" , py::arg("I")
)
.def("Pnt",
(const gp_Pnt & (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const) static_cast<const gp_Pnt & (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const>(&IntCurvesFace_ShapeIntersector::Pnt),
R"#(Returns the geometric point of the ith intersection between the line and the surface.)#" , py::arg("I")
)
.def("Transition",
(IntCurveSurface_TransitionOnCurve (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const) static_cast<IntCurveSurface_TransitionOnCurve (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const>(&IntCurvesFace_ShapeIntersector::Transition),
R"#(Returns the ith transition of the line on the surface.)#" , py::arg("I")
)
.def("State",
(TopAbs_State (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const) static_cast<TopAbs_State (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const>(&IntCurvesFace_ShapeIntersector::State),
R"#(Returns the ith state of the point on the face. The values can be either TopAbs_IN ( the point is in the face) or TopAbs_ON ( the point is on a boundary of the face).)#" , py::arg("I")
)
.def("Face",
(const TopoDS_Face & (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const) static_cast<const TopoDS_Face & (IntCurvesFace_ShapeIntersector::*)( const Standard_Integer ) const>(&IntCurvesFace_ShapeIntersector::Face),
R"#(Returns the significant face used to determine the intersection.)#" , py::arg("I")
)
.def("SortResult",
(void (IntCurvesFace_ShapeIntersector::*)() ) static_cast<void (IntCurvesFace_ShapeIntersector::*)() >(&IntCurvesFace_ShapeIntersector::SortResult),
R"#(Internal method. Sort the result on the Curve parameter.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// functions
// ./opencascade/IntCurvesFace_Intersector.hxx
// ./opencascade/IntCurvesFace_ShapeIntersector.hxx
// Additional functions
// operators
// register typdefs
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|