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
|
// 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 <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <Geom2dEvaluator.hxx>
#include <Geom2dEvaluator_Curve.hxx>
#include <Geom2dEvaluator_OffsetCurve.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_Geom2dEvaluator_enums(py::module &main_module) {
py::module m = main_module.def_submodule("Geom2dEvaluator", R"#()#");
// add namespaces as submodules
// user-defined inclusion per module in the body
// enums
//Python trampoline classes
class Py_Geom2dEvaluator_Curve : public Geom2dEvaluator_Curve{
public:
using Geom2dEvaluator_Curve::Geom2dEvaluator_Curve;
// public pure virtual
void D0( const Standard_Real theU,gp_Pnt2d & theValue) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Geom2dEvaluator_Curve,D0,theU,theValue) };
void D1( const Standard_Real theU,gp_Pnt2d & theValue,gp_Vec2d & theD1) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Geom2dEvaluator_Curve,D1,theU,theValue,theD1) };
void D2( const Standard_Real theU,gp_Pnt2d & theValue,gp_Vec2d & theD1,gp_Vec2d & theD2) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Geom2dEvaluator_Curve,D2,theU,theValue,theD1,theD2) };
void D3( const Standard_Real theU,gp_Pnt2d & theValue,gp_Vec2d & theD1,gp_Vec2d & theD2,gp_Vec2d & theD3) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Geom2dEvaluator_Curve,D3,theU,theValue,theD1,theD2,theD3) };
gp_Vec2d DN( const Standard_Real theU, const Standard_Integer theDerU) const override { using return_type = gp_Vec2d;
PYBIND11_OVERLOAD_PURE(return_type,Geom2dEvaluator_Curve,DN,theU,theDerU) };
handle<Geom2dEvaluator_Curve> ShallowCopy() const override { using return_type = handle<Geom2dEvaluator_Curve>;
PYBIND11_OVERLOAD_PURE(return_type,Geom2dEvaluator_Curve,ShallowCopy,) };
// protected pure virtual
// private pure virtual
};
// pre-register typdefs+classes (topologically sorted)
py::class_<Geom2dEvaluator , shared_ptr<Geom2dEvaluator> >(m,"Geom2dEvaluator",R"#(The Geom2dEvaluator package provides utilities for . calculating value and derivatives of offset curve using corresponding values of base curve)#");
py::class_<Geom2dEvaluator_Curve ,opencascade::handle<Geom2dEvaluator_Curve> ,Py_Geom2dEvaluator_Curve , Standard_Transient >(m,"Geom2dEvaluator_Curve",R"#(Interface for calculation of values and derivatives for different kinds of curves in 2D. Works both with adaptors and curves.Interface for calculation of values and derivatives for different kinds of curves in 2D. Works both with adaptors and curves.)#");
py::class_<Geom2dEvaluator_OffsetCurve ,opencascade::handle<Geom2dEvaluator_OffsetCurve> , Geom2dEvaluator_Curve >(m,"Geom2dEvaluator_OffsetCurve",R"#(Allows to calculate values and derivatives for offset curves in 2DAllows to calculate values and derivatives for offset curves in 2D)#");
};
// user-defined post-inclusion per module
// user-defined post
|