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
|
// 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 <TopoDS_Face.hxx>
// module includes
#include <BRepIntCurveSurface_Inter.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_BRepIntCurveSurface(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("BRepIntCurveSurface"));
py::object klass;
//Python trampoline classes
// classes
// Class BRepIntCurveSurface_Inter from ./opencascade/BRepIntCurveSurface_Inter.hxx
klass = m.attr("BRepIntCurveSurface_Inter");
// nested enums
static_cast<py::class_<BRepIntCurveSurface_Inter , shared_ptr<BRepIntCurveSurface_Inter> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Init",
(void (BRepIntCurveSurface_Inter::*)( const TopoDS_Shape & , const GeomAdaptor_Curve & , const Standard_Real ) ) static_cast<void (BRepIntCurveSurface_Inter::*)( const TopoDS_Shape & , const GeomAdaptor_Curve & , const Standard_Real ) >(&BRepIntCurveSurface_Inter::Init),
R"#(Load the Shape, the curve and initialize the tolerance used for the classification.)#" , py::arg("theShape"), py::arg("theCurve"), py::arg("theTol")
)
.def("Init",
(void (BRepIntCurveSurface_Inter::*)( const TopoDS_Shape & , const gp_Lin & , const Standard_Real ) ) static_cast<void (BRepIntCurveSurface_Inter::*)( const TopoDS_Shape & , const gp_Lin & , const Standard_Real ) >(&BRepIntCurveSurface_Inter::Init),
R"#(Load the Shape, the curve and initialize the tolerance used for the classification.)#" , py::arg("theShape"), py::arg("theLine"), py::arg("theTol")
)
.def("Load",
(void (BRepIntCurveSurface_Inter::*)( const TopoDS_Shape & , const Standard_Real ) ) static_cast<void (BRepIntCurveSurface_Inter::*)( const TopoDS_Shape & , const Standard_Real ) >(&BRepIntCurveSurface_Inter::Load),
R"#(Load the Shape, and initialize the tolerance used for the classification.)#" , py::arg("theShape"), py::arg("theTol")
)
.def("Init",
(void (BRepIntCurveSurface_Inter::*)( const GeomAdaptor_Curve & ) ) static_cast<void (BRepIntCurveSurface_Inter::*)( const GeomAdaptor_Curve & ) >(&BRepIntCurveSurface_Inter::Init),
R"#(Method to find intersections of specified curve with loaded shape.)#" , py::arg("theCurve")
)
.def("More",
(Standard_Boolean (BRepIntCurveSurface_Inter::*)() const) static_cast<Standard_Boolean (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::More),
R"#(returns True if there is a current face.)#"
)
.def("Next",
(void (BRepIntCurveSurface_Inter::*)() ) static_cast<void (BRepIntCurveSurface_Inter::*)() >(&BRepIntCurveSurface_Inter::Next),
R"#(Sets the next intersection point to check.)#"
)
.def("Point",
(IntCurveSurface_IntersectionPoint (BRepIntCurveSurface_Inter::*)() const) static_cast<IntCurveSurface_IntersectionPoint (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::Point),
R"#(returns the current Intersection point.)#"
)
.def("U",
(Standard_Real (BRepIntCurveSurface_Inter::*)() const) static_cast<Standard_Real (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::U),
R"#(returns the U parameter of the current point on the current face.)#"
)
.def("V",
(Standard_Real (BRepIntCurveSurface_Inter::*)() const) static_cast<Standard_Real (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::V),
R"#(returns the V parameter of the current point on the current face.)#"
)
.def("W",
(Standard_Real (BRepIntCurveSurface_Inter::*)() const) static_cast<Standard_Real (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::W),
R"#(returns the parameter of the current point on the curve.)#"
)
.def("State",
(TopAbs_State (BRepIntCurveSurface_Inter::*)() const) static_cast<TopAbs_State (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::State),
R"#(returns the current state (IN or ON))#"
)
.def("Transition",
(IntCurveSurface_TransitionOnCurve (BRepIntCurveSurface_Inter::*)() const) static_cast<IntCurveSurface_TransitionOnCurve (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::Transition),
R"#(returns the transition of the line on the surface (IN or OUT or UNKNOWN))#"
)
// 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
.def("Pnt",
(const gp_Pnt & (BRepIntCurveSurface_Inter::*)() const) static_cast<const gp_Pnt & (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::Pnt),
R"#(returns the current geometric Point)#"
)
.def("Face",
(const TopoDS_Face & (BRepIntCurveSurface_Inter::*)() const) static_cast<const TopoDS_Face & (BRepIntCurveSurface_Inter::*)() const>(&BRepIntCurveSurface_Inter::Face),
R"#(returns the current face.)#"
)
;
// functions
// ./opencascade/BRepIntCurveSurface_Inter.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
|