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
|
// 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 <Geom2d_Curve.hxx>
#include <Geom_Curve.hxx>
#include <Geom_Surface.hxx>
#include <Geom_Plane.hxx>
#include <gp_Dir.hxx>
// module includes
#include <GeomProjLib.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_GeomProjLib(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("GeomProjLib"));
py::object klass;
//Python trampoline classes
// classes
// Class GeomProjLib from ./opencascade/GeomProjLib.hxx
klass = m.attr("GeomProjLib");
// default constructor
register_default_constructor<GeomProjLib , shared_ptr<GeomProjLib>>(m,"GeomProjLib");
// nested enums
static_cast<py::class_<GeomProjLib , shared_ptr<GeomProjLib> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Curve2d_s",
(opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const Standard_Real , const Standard_Real , const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , Standard_Real & ) ) static_cast<opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const Standard_Real , const Standard_Real , const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , Standard_Real & ) >(&GeomProjLib::Curve2d),
R"#(gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] <Tolerance> is used as input if the projection needs an approximation. In this case, the reached tolerance is set in <Tolerance> as output. WARNING : if the projection has failed, this method returns a null Handle.)#" , py::arg("C"), py::arg("First"), py::arg("Last"), py::arg("S"), py::arg("UFirst"), py::arg("ULast"), py::arg("VFirst"), py::arg("VLast"), py::arg("Tolerance")
)
.def_static("Curve2d_s",
(opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const Standard_Real , const Standard_Real , const opencascade::handle<Geom_Surface> & , Standard_Real & ) ) static_cast<opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const Standard_Real , const Standard_Real , const opencascade::handle<Geom_Surface> & , Standard_Real & ) >(&GeomProjLib::Curve2d),
R"#(gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] <Tolerance> is used as input if the projection needs an approximation. In this case, the reached tolerance is set in <Tolerance> as output. WARNING : if the projection has failed, this method returns a null Handle.)#" , py::arg("C"), py::arg("First"), py::arg("Last"), py::arg("S"), py::arg("Tolerance")
)
.def_static("Curve2d_s",
(opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const Standard_Real , const Standard_Real , const opencascade::handle<Geom_Surface> & ) ) static_cast<opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const Standard_Real , const Standard_Real , const opencascade::handle<Geom_Surface> & ) >(&GeomProjLib::Curve2d),
R"#(gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle.)#" , py::arg("C"), py::arg("First"), py::arg("Last"), py::arg("S")
)
.def_static("Curve2d_s",
(opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Surface> & ) ) static_cast<opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Surface> & ) >(&GeomProjLib::Curve2d),
R"#(gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle.)#" , py::arg("C"), py::arg("S")
)
.def_static("Curve2d_s",
(opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&GeomProjLib::Curve2d),
R"#(gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle. can expand a little the bounds of surface)#" , py::arg("C"), py::arg("S"), py::arg("UDeb"), py::arg("UFin"), py::arg("VDeb"), py::arg("VFin")
)
.def_static("Curve2d_s",
(opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , Standard_Real & ) ) static_cast<opencascade::handle<Geom2d_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , Standard_Real & ) >(&GeomProjLib::Curve2d),
R"#(gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle. can expand a little the bounds of surface)#" , py::arg("C"), py::arg("S"), py::arg("UDeb"), py::arg("UFin"), py::arg("VDeb"), py::arg("VFin"), py::arg("Tolerance")
)
.def_static("Project_s",
(opencascade::handle<Geom_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Surface> & ) ) static_cast<opencascade::handle<Geom_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Surface> & ) >(&GeomProjLib::Project),
R"#(Constructs the 3d-curve from the normal projection of the Curve <C> on the surface <S>. WARNING : if the projection has failed, returns a null Handle.)#" , py::arg("C"), py::arg("S")
)
.def_static("ProjectOnPlane_s",
(opencascade::handle<Geom_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Plane> & , const gp_Dir & , const Standard_Boolean ) ) static_cast<opencascade::handle<Geom_Curve> (*)( const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom_Plane> & , const gp_Dir & , const Standard_Boolean ) >(&GeomProjLib::ProjectOnPlane),
R"#(Constructs the 3d-curves from the projection of the curve <Curve> on the plane <Plane> along the direction <Dir>. If <KeepParametrization> is true, the parametrization of the Projected Curve <PC> will be the same as the parametrization of the initial curve <C>. It means: proj(C(u)) = PC(u) for each u. Otherwise, the parametrization may change.)#" , py::arg("Curve"), py::arg("Plane"), py::arg("Dir"), py::arg("KeepParametrization")
)
// 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/GeomProjLib.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
|