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
|
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// user-defined inclusion per module before includes
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <AdvApprox_Cutting.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>
#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>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <PLib_JacobiPolynomial.hxx>
// module includes
#include <AdvApprox_ApproxAFunction.hxx>
#include <AdvApprox_Cutting.hxx>
#include <AdvApprox_DichoCutting.hxx>
#include <AdvApprox_EvaluatorFunction.hxx>
#include <AdvApprox_PrefAndRec.hxx>
#include <AdvApprox_PrefCutting.hxx>
#include <AdvApprox_SimpleApprox.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_AdvApprox_enums(py::module &main_module) {
py::module m = main_module.def_submodule("AdvApprox", R"#()#");
// user-defined inclusion per module in the body
// enums
//Python trampoline classes
class Py_AdvApprox_Cutting : public AdvApprox_Cutting{
public:
using AdvApprox_Cutting::AdvApprox_Cutting;
// public pure virtual
Standard_Boolean Value(const Standard_Real a,const Standard_Real b,Standard_Real & cuttingvalue) const override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,AdvApprox_Cutting,Value,a,b,cuttingvalue) };
// protected pure virtual
// private pure virtual
};
// pre-register typdefs+classes (topologically sorted)
py::class_<AdvApprox_ApproxAFunction , shared_ptr<AdvApprox_ApproxAFunction> >(m,"AdvApprox_ApproxAFunction",R"#(this approximate a given function)#");
py::class_<AdvApprox_Cutting , shared_ptr<AdvApprox_Cutting> ,Py_AdvApprox_Cutting >(m,"AdvApprox_Cutting",R"#(to choose the way of cutting in approximation)#");
py::class_<AdvApprox_SimpleApprox , shared_ptr<AdvApprox_SimpleApprox> >(m,"AdvApprox_SimpleApprox",R"#(Approximate a function on an intervall [First,Last] The result is a simple polynomial whose degree is as low as possible to satisfy the required tolerance and the maximum degree. The maximum error and the averrage error resulting from approximating the function by the polynomial are computed)#");
py::class_<AdvApprox_DichoCutting , shared_ptr<AdvApprox_DichoCutting> , AdvApprox_Cutting >(m,"AdvApprox_DichoCutting",R"#(if Cutting is necessary in [a,b], we cut at (a+b) / 2.)#");
py::class_<AdvApprox_PrefAndRec , shared_ptr<AdvApprox_PrefAndRec> , AdvApprox_Cutting >(m,"AdvApprox_PrefAndRec",R"#(inherits class Cutting; contains a list of preferential points (pi)i and a list of Recommended points used in cutting management. if Cutting is necessary in [a,b], we cut at the di nearest from (a+b)/2)#");
py::class_<AdvApprox_PrefCutting , shared_ptr<AdvApprox_PrefCutting> , AdvApprox_Cutting >(m,"AdvApprox_PrefCutting",R"#(inherits class Cutting; contains a list of preferential points (di)i if Cutting is necessary in [a,b], we cut at the di nearest from (a+b)/2.)#");
};
// user-defined post-inclusion per module
// user-defined post
|