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
|
// 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 <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <TopTrans_Array2OfOrientation.hxx>
#include <TopTrans_CurveTransition.hxx>
#include <TopTrans_SurfaceTransition.hxx>
// template related includes
// ./opencascade/TopTrans_Array2OfOrientation.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_TopTrans(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("TopTrans"));
py::object klass;
//Python trampoline classes
// classes
// Class TopTrans_CurveTransition from ./opencascade/TopTrans_CurveTransition.hxx
klass = m.attr("TopTrans_CurveTransition");
// nested enums
static_cast<py::class_<TopTrans_CurveTransition , shared_ptr<TopTrans_CurveTransition> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Reset",
(void (TopTrans_CurveTransition::*)( const gp_Dir & , const gp_Dir & , const Standard_Real ) ) static_cast<void (TopTrans_CurveTransition::*)( const gp_Dir & , const gp_Dir & , const Standard_Real ) >(&TopTrans_CurveTransition::Reset),
R"#(Initialize a Transition with the local description of a Curve.)#" , py::arg("Tgt"), py::arg("Norm"), py::arg("Curv")
)
.def("Reset",
(void (TopTrans_CurveTransition::*)( const gp_Dir & ) ) static_cast<void (TopTrans_CurveTransition::*)( const gp_Dir & ) >(&TopTrans_CurveTransition::Reset),
R"#(Initialize a Transition with the local description of a straight line.)#" , py::arg("Tgt")
)
.def("Compare",
(void (TopTrans_CurveTransition::*)( const Standard_Real , const gp_Dir & , const gp_Dir & , const Standard_Real , const TopAbs_Orientation , const TopAbs_Orientation ) ) static_cast<void (TopTrans_CurveTransition::*)( const Standard_Real , const gp_Dir & , const gp_Dir & , const Standard_Real , const TopAbs_Orientation , const TopAbs_Orientation ) >(&TopTrans_CurveTransition::Compare),
R"#(Add a curve element to the boundary. If Or is REVERSED the curve is before the intersection, else if Or is FORWARD the curv is after the intersection and if Or is INTERNAL the intersection is in the middle of the curv.)#" , py::arg("Tole"), py::arg("Tang"), py::arg("Norm"), py::arg("Curv"), py::arg("S"), py::arg("Or")
)
.def("StateBefore",
(TopAbs_State (TopTrans_CurveTransition::*)() const) static_cast<TopAbs_State (TopTrans_CurveTransition::*)() const>(&TopTrans_CurveTransition::StateBefore),
R"#(returns the state of the curve before the intersection, this is the position relative to the boundary of a point very close to the intersection on the negative side of the tangent.)#"
)
.def("StateAfter",
(TopAbs_State (TopTrans_CurveTransition::*)() const) static_cast<TopAbs_State (TopTrans_CurveTransition::*)() const>(&TopTrans_CurveTransition::StateAfter),
R"#(returns the state of the curve after the intersection, this is the position relative to the boundary of a point very close to the intersection on the positive side of the tangent.)#"
)
// 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
;
// Class TopTrans_SurfaceTransition from ./opencascade/TopTrans_SurfaceTransition.hxx
klass = m.attr("TopTrans_SurfaceTransition");
// nested enums
static_cast<py::class_<TopTrans_SurfaceTransition , shared_ptr<TopTrans_SurfaceTransition> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Reset",
(void (TopTrans_SurfaceTransition::*)( const gp_Dir & , const gp_Dir & , const gp_Dir & , const gp_Dir & , const Standard_Real , const Standard_Real ) ) static_cast<void (TopTrans_SurfaceTransition::*)( const gp_Dir & , const gp_Dir & , const gp_Dir & , const gp_Dir & , const Standard_Real , const Standard_Real ) >(&TopTrans_SurfaceTransition::Reset),
R"#(Initialize a Surface Transition with the local description of the intersection curve and of the reference surface. PREQUESITORY : Norm oriented OUTSIDE "geometric matter")#" , py::arg("Tgt"), py::arg("Norm"), py::arg("MaxD"), py::arg("MinD"), py::arg("MaxCurv"), py::arg("MinCurv")
)
.def("Reset",
(void (TopTrans_SurfaceTransition::*)( const gp_Dir & , const gp_Dir & ) ) static_cast<void (TopTrans_SurfaceTransition::*)( const gp_Dir & , const gp_Dir & ) >(&TopTrans_SurfaceTransition::Reset),
R"#(Initialize a Surface Transition with the local description of a straight line.)#" , py::arg("Tgt"), py::arg("Norm")
)
.def("Compare",
(void (TopTrans_SurfaceTransition::*)( const Standard_Real , const gp_Dir & , const gp_Dir & , const gp_Dir & , const Standard_Real , const Standard_Real , const TopAbs_Orientation , const TopAbs_Orientation ) ) static_cast<void (TopTrans_SurfaceTransition::*)( const Standard_Real , const gp_Dir & , const gp_Dir & , const gp_Dir & , const Standard_Real , const Standard_Real , const TopAbs_Orientation , const TopAbs_Orientation ) >(&TopTrans_SurfaceTransition::Compare),
R"#(Add a face element to the boundary.)#" , py::arg("Tole"), py::arg("Norm"), py::arg("MaxD"), py::arg("MinD"), py::arg("MaxCurv"), py::arg("MinCurv"), py::arg("S"), py::arg("O")
)
.def("Compare",
(void (TopTrans_SurfaceTransition::*)( const Standard_Real , const gp_Dir & , const TopAbs_Orientation , const TopAbs_Orientation ) ) static_cast<void (TopTrans_SurfaceTransition::*)( const Standard_Real , const gp_Dir & , const TopAbs_Orientation , const TopAbs_Orientation ) >(&TopTrans_SurfaceTransition::Compare),
R"#(Add a plane or a cylindric face to the boundary.)#" , py::arg("Tole"), py::arg("Norm"), py::arg("S"), py::arg("O")
)
.def("StateBefore",
(TopAbs_State (TopTrans_SurfaceTransition::*)() const) static_cast<TopAbs_State (TopTrans_SurfaceTransition::*)() const>(&TopTrans_SurfaceTransition::StateBefore),
R"#(Returns the state of the reference surface before the interference, this is the position relative to the surface of a point very close to the intersection on the negative side of the tangent.)#"
)
.def("StateAfter",
(TopAbs_State (TopTrans_SurfaceTransition::*)() const) static_cast<TopAbs_State (TopTrans_SurfaceTransition::*)() const>(&TopTrans_SurfaceTransition::StateAfter),
R"#(Returns the state of the reference surface after interference, this is the position relative to the surface of a point very close to the intersection on the positive side of the tangent.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetBefore_s",
(TopAbs_State (*)( const TopAbs_Orientation ) ) static_cast<TopAbs_State (*)( const TopAbs_Orientation ) >(&TopTrans_SurfaceTransition::GetBefore),
R"#(None)#" , py::arg("Tran")
)
.def_static("GetAfter_s",
(TopAbs_State (*)( const TopAbs_Orientation ) ) static_cast<TopAbs_State (*)( const TopAbs_Orientation ) >(&TopTrans_SurfaceTransition::GetAfter),
R"#(None)#" , py::arg("Tran")
)
// 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/TopTrans_Array2OfOrientation.hxx
// ./opencascade/TopTrans_CurveTransition.hxx
// ./opencascade/TopTrans_SurfaceTransition.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_Array2<TopAbs_Orientation>(m,"TopTrans_Array2OfOrientation");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|