File: BRepFilletAPI_pre.cpp

package info (click to toggle)
python-ocp 7.8.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 64,720 kB
  • sloc: cpp: 362,337; pascal: 33; python: 23; makefile: 4
file content (95 lines) | stat: -rw-r--r-- 6,317 bytes parent folder | download | duplicates (2)
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 <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopOpeBRepBuild_HBuilder.hxx>
#include <Law_Function.hxx>
#include <TopOpeBRepBuild_HBuilder.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>

// module includes
#include <BRepFilletAPI_LocalOperation.hxx>
#include <BRepFilletAPI_MakeChamfer.hxx>
#include <BRepFilletAPI_MakeFillet.hxx>
#include <BRepFilletAPI_MakeFillet2d.hxx>

// template related includes


// user-defined pre
#include "OCP_specific.inc"

// user-defined inclusion per module

// Module definiiton
void register_BRepFilletAPI_enums(py::module &main_module) {


py::module m = main_module.def_submodule("BRepFilletAPI", R"#()#");

// user-defined inclusion per module in the body

// enums

//Python trampoline classes
    class Py_BRepFilletAPI_LocalOperation : public BRepFilletAPI_LocalOperation{
    public:
        using BRepFilletAPI_LocalOperation::BRepFilletAPI_LocalOperation;


        // public pure virtual
        void Add(const TopoDS_Edge & E) override { PYBIND11_OVERLOAD_PURE(void,BRepFilletAPI_LocalOperation,Add,E) };
        void ResetContour(const Standard_Integer IC) override { PYBIND11_OVERLOAD_PURE(void,BRepFilletAPI_LocalOperation,ResetContour,IC) };
        Standard_Integer NbContours() const  override { PYBIND11_OVERLOAD_PURE(Standard_Integer,BRepFilletAPI_LocalOperation,NbContours,) };
        Standard_Integer Contour(const TopoDS_Edge & E) const  override { PYBIND11_OVERLOAD_PURE(Standard_Integer,BRepFilletAPI_LocalOperation,Contour,E) };
        Standard_Integer NbEdges(const Standard_Integer I) const  override { PYBIND11_OVERLOAD_PURE(Standard_Integer,BRepFilletAPI_LocalOperation,NbEdges,I) };
        const TopoDS_Edge & Edge(const Standard_Integer I,const Standard_Integer J) const  override { PYBIND11_OVERLOAD_PURE(const TopoDS_Edge &,BRepFilletAPI_LocalOperation,Edge,I,J) };
        void Remove(const TopoDS_Edge & E) override { PYBIND11_OVERLOAD_PURE(void,BRepFilletAPI_LocalOperation,Remove,E) };
        Standard_Real Length(const Standard_Integer IC) const  override { PYBIND11_OVERLOAD_PURE(Standard_Real,BRepFilletAPI_LocalOperation,Length,IC) };
        TopoDS_Vertex FirstVertex(const Standard_Integer IC) const  override { PYBIND11_OVERLOAD_PURE(TopoDS_Vertex,BRepFilletAPI_LocalOperation,FirstVertex,IC) };
        TopoDS_Vertex LastVertex(const Standard_Integer IC) const  override { PYBIND11_OVERLOAD_PURE(TopoDS_Vertex,BRepFilletAPI_LocalOperation,LastVertex,IC) };
        Standard_Real Abscissa(const Standard_Integer IC,const TopoDS_Vertex & V) const  override { PYBIND11_OVERLOAD_PURE(Standard_Real,BRepFilletAPI_LocalOperation,Abscissa,IC,V) };
        Standard_Real RelativeAbscissa(const Standard_Integer IC,const TopoDS_Vertex & V) const  override { PYBIND11_OVERLOAD_PURE(Standard_Real,BRepFilletAPI_LocalOperation,RelativeAbscissa,IC,V) };
        Standard_Boolean ClosedAndTangent(const Standard_Integer IC) const  override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,BRepFilletAPI_LocalOperation,ClosedAndTangent,IC) };
        Standard_Boolean Closed(const Standard_Integer IC) const  override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,BRepFilletAPI_LocalOperation,Closed,IC) };
        void Reset() override { PYBIND11_OVERLOAD_PURE(void,BRepFilletAPI_LocalOperation,Reset,) };
        void Simulate(const Standard_Integer IC) override { PYBIND11_OVERLOAD_PURE(void,BRepFilletAPI_LocalOperation,Simulate,IC) };
        Standard_Integer NbSurf(const Standard_Integer IC) const  override { PYBIND11_OVERLOAD_PURE(Standard_Integer,BRepFilletAPI_LocalOperation,NbSurf,IC) };
        opencascade::handle<ChFiDS_SecHArray1> Sect(const Standard_Integer IC,const Standard_Integer IS) const  override { PYBIND11_OVERLOAD_PURE(opencascade::handle<ChFiDS_SecHArray1>,BRepFilletAPI_LocalOperation,Sect,IC,IS) };


        // protected pure virtual


        // private pure virtual

    };

// pre-register typdefs+classes (topologically sorted)
    py::class_<BRepFilletAPI_LocalOperation , shared_ptr<BRepFilletAPI_LocalOperation> ,Py_BRepFilletAPI_LocalOperation , BRepBuilderAPI_MakeShape >(m,"BRepFilletAPI_LocalOperation",R"#(Construction of fillets on the edges of a Shell.)#");
    py::class_<BRepFilletAPI_MakeFillet2d , shared_ptr<BRepFilletAPI_MakeFillet2d>  , BRepBuilderAPI_MakeShape >(m,"BRepFilletAPI_MakeFillet2d",R"#(Describes functions to build fillets and chamfers on the vertices of a planar face. Fillets and Chamfers on the Vertices of a Planar Face A MakeFillet2d object provides a framework for: - initializing the construction algorithm with a given face, - acquiring the data characterizing the fillets and chamfers, - building the fillets and chamfers, and constructing the resulting shape, and - consulting the result. Warning Only segments of straight lines and arcs of circles are treated. BSplines are not processed.)#");
    py::class_<BRepFilletAPI_MakeChamfer , shared_ptr<BRepFilletAPI_MakeChamfer>  , BRepFilletAPI_LocalOperation >(m,"BRepFilletAPI_MakeChamfer",R"#(Describes functions to build chamfers on edges of a shell or solid. Chamfered Edge of a Shell or Solid A MakeChamfer object provides a framework for: - initializing the construction algorithm with a given shape, - acquiring the data characterizing the chamfers, - building the chamfers and constructing the resulting shape, and - consulting the result.)#");
    py::class_<BRepFilletAPI_MakeFillet , shared_ptr<BRepFilletAPI_MakeFillet>  , BRepFilletAPI_LocalOperation >(m,"BRepFilletAPI_MakeFillet",R"#(Describes functions to build fillets on the broken edges of a shell or solid. A MakeFillet object provides a framework for: - initializing the construction algorithm with a given shape, - acquiring the data characterizing the fillets, - building the fillets and constructing the resulting shape, and - consulting the result.)#");

};

// user-defined post-inclusion per module

// user-defined post