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 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
|
// 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_Pnt.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <TopoDS_Wire.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Edge.hxx>
#include <Adaptor2d_Curve2d.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 <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <IMeshData_Shape.hxx>
#include <IMeshData_Face.hxx>
#include <IMeshData_Wire.hxx>
#include <IMeshData_Edge.hxx>
#include <IMeshData_Curve.hxx>
#include <IMeshData_PCurve.hxx>
#include <IMeshData_Model.hxx>
#include <BRepMesh_VertexInspector.hxx>
#include <BRepMesh_CircleInspector.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <IMeshData_Curve.hxx>
#include <IMeshData_Edge.hxx>
#include <IMeshData_Face.hxx>
#include <IMeshData_Model.hxx>
#include <IMeshData_ParametersList.hxx>
#include <IMeshData_ParametersListArrayAdaptor.hxx>
#include <IMeshData_PCurve.hxx>
#include <IMeshData_Shape.hxx>
#include <IMeshData_Status.hxx>
#include <IMeshData_StatusOwner.hxx>
#include <IMeshData_TessellatedShape.hxx>
#include <IMeshData_Types.hxx>
#include <IMeshData_Wire.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_IMeshData_enums(py::module &main_module) {
py::module m = main_module.def_submodule("IMeshData", R"#()#");
// user-defined inclusion per module in the body
// enums
py::enum_<IMeshData_Status>(m, "IMeshData_Status",R"#(Enumerates statuses used to notify state of discrete model.)#")
.value("IMeshData_NoError",IMeshData_Status::IMeshData_NoError)
.value("IMeshData_OpenWire",IMeshData_Status::IMeshData_OpenWire)
.value("IMeshData_SelfIntersectingWire",IMeshData_Status::IMeshData_SelfIntersectingWire)
.value("IMeshData_Failure",IMeshData_Status::IMeshData_Failure)
.value("IMeshData_ReMesh",IMeshData_Status::IMeshData_ReMesh)
.value("IMeshData_UnorientedWire",IMeshData_Status::IMeshData_UnorientedWire)
.value("IMeshData_TooFewPoints",IMeshData_Status::IMeshData_TooFewPoints)
.value("IMeshData_Outdated",IMeshData_Status::IMeshData_Outdated)
.value("IMeshData_Reused",IMeshData_Status::IMeshData_Reused)
.value("IMeshData_UserBreak",IMeshData_Status::IMeshData_UserBreak).export_values();
//Python trampoline classes
class Py_IMeshData_ParametersList : public IMeshData_ParametersList{
public:
using IMeshData_ParametersList::IMeshData_ParametersList;
// public pure virtual
Standard_Real & GetParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(Standard_Real &,IMeshData_ParametersList,GetParameter,theIndex) };
Standard_Integer ParametersNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_ParametersList,ParametersNb,) };
void Clear(const Standard_Boolean isKeepEndPoints) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,Clear,isKeepEndPoints) };
// protected pure virtual
void removeParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,removeParameter,theIndex) };
// private pure virtual
};
class Py_IMeshData_Curve : public IMeshData_Curve{
public:
using IMeshData_Curve::IMeshData_Curve;
// public pure virtual
void InsertPoint(const Standard_Integer thePosition,const gp_Pnt & thePoint,const Standard_Real theParamOnPCurve) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_Curve,InsertPoint,thePosition,thePoint,theParamOnPCurve) };
void AddPoint(const gp_Pnt & thePoint,const Standard_Real theParamOnCurve) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_Curve,AddPoint,thePoint,theParamOnCurve) };
gp_Pnt & GetPoint(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(gp_Pnt &,IMeshData_Curve,GetPoint,theIndex) };
void RemovePoint(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_Curve,RemovePoint,theIndex) };
Standard_Real & GetParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(Standard_Real &,IMeshData_ParametersList,GetParameter,theIndex) };
Standard_Integer ParametersNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_ParametersList,ParametersNb,) };
void Clear(const Standard_Boolean isKeepEndPoints) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,Clear,isKeepEndPoints) };
// protected pure virtual
void removeParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,removeParameter,theIndex) };
// private pure virtual
};
class Py_IMeshData_Model : public IMeshData_Model{
public:
using IMeshData_Model::IMeshData_Model;
// public pure virtual
Standard_Real GetMaxSize() const override { PYBIND11_OVERLOAD_PURE(Standard_Real,IMeshData_Model,GetMaxSize,) };
Standard_Integer FacesNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Model,FacesNb,) };
const IMeshData::IFaceHandle & AddFace(const TopoDS_Face & theFace) override { PYBIND11_OVERLOAD_PURE(const IMeshData::IFaceHandle &,IMeshData_Model,AddFace,theFace) };
const IMeshData::IFaceHandle & GetFace(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IFaceHandle &,IMeshData_Model,GetFace,theIndex) };
Standard_Integer EdgesNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Model,EdgesNb,) };
const IMeshData::IEdgeHandle & AddEdge(const TopoDS_Edge & theEdge) override { PYBIND11_OVERLOAD_PURE(const IMeshData::IEdgeHandle &,IMeshData_Model,AddEdge,theEdge) };
const IMeshData::IEdgeHandle & GetEdge(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IEdgeHandle &,IMeshData_Model,GetEdge,theIndex) };
// protected pure virtual
// private pure virtual
};
class Py_IMeshData_PCurve : public IMeshData_PCurve{
public:
using IMeshData_PCurve::IMeshData_PCurve;
// public pure virtual
void InsertPoint(const Standard_Integer thePosition,const gp_Pnt2d & thePoint,const Standard_Real theParamOnPCurve) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_PCurve,InsertPoint,thePosition,thePoint,theParamOnPCurve) };
void AddPoint(const gp_Pnt2d & thePoint,const Standard_Real theParamOnPCurve) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_PCurve,AddPoint,thePoint,theParamOnPCurve) };
gp_Pnt2d & GetPoint(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(gp_Pnt2d &,IMeshData_PCurve,GetPoint,theIndex) };
Standard_Integer & GetIndex(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(Standard_Integer &,IMeshData_PCurve,GetIndex,theIndex) };
void RemovePoint(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_PCurve,RemovePoint,theIndex) };
Standard_Real & GetParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(Standard_Real &,IMeshData_ParametersList,GetParameter,theIndex) };
Standard_Integer ParametersNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_ParametersList,ParametersNb,) };
void Clear(const Standard_Boolean isKeepEndPoints) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,Clear,isKeepEndPoints) };
// protected pure virtual
void removeParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,removeParameter,theIndex) };
// private pure virtual
};
class Py_IMeshData_Edge : public IMeshData_Edge{
public:
using IMeshData_Edge::IMeshData_Edge;
// public pure virtual
Standard_Integer PCurvesNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Edge,PCurvesNb,) };
const IMeshData::IPCurveHandle & AddPCurve(const IMeshData::IFacePtr & theDFace,const TopAbs_Orientation theOrientation) override { PYBIND11_OVERLOAD_PURE(const IMeshData::IPCurveHandle &,IMeshData_Edge,AddPCurve,theDFace,theOrientation) };
const IMeshData::IPCurveHandle & GetPCurve(const IMeshData::IFacePtr & theDFace,const TopAbs_Orientation theOrientation) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IPCurveHandle &,IMeshData_Edge,GetPCurve,theDFace,theOrientation) };
const IMeshData::IPCurveHandle & GetPCurve(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IPCurveHandle &,IMeshData_Edge,GetPCurve,theIndex) };
// protected pure virtual
// private pure virtual
};
class Py_IMeshData_Face : public IMeshData_Face{
public:
using IMeshData_Face::IMeshData_Face;
// public pure virtual
Standard_Integer WiresNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Face,WiresNb,) };
const IMeshData::IWireHandle & AddWire(const TopoDS_Wire & theWire,const Standard_Integer theEdgeNb) override { PYBIND11_OVERLOAD_PURE(const IMeshData::IWireHandle &,IMeshData_Face,AddWire,theWire,theEdgeNb) };
const IMeshData::IWireHandle & GetWire(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IWireHandle &,IMeshData_Face,GetWire,theIndex) };
// protected pure virtual
// private pure virtual
};
class Py_IMeshData_Wire : public IMeshData_Wire{
public:
using IMeshData_Wire::IMeshData_Wire;
// public pure virtual
Standard_Integer EdgesNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Wire,EdgesNb,) };
Standard_Integer AddEdge(const IMeshData::IEdgePtr & theDEdge,const TopAbs_Orientation theOrientation) override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Wire,AddEdge,theDEdge,theOrientation) };
const IMeshData::IEdgePtr & GetEdge(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IEdgePtr &,IMeshData_Wire,GetEdge,theIndex) };
TopAbs_Orientation GetEdgeOrientation(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(TopAbs_Orientation,IMeshData_Wire,GetEdgeOrientation,theIndex) };
// protected pure virtual
// private pure virtual
};
// pre-register typdefs+classes (topologically sorted)
py::class_<IMeshData_StatusOwner , shared_ptr<IMeshData_StatusOwner> >(m,"IMeshData_StatusOwner",R"#(Extension interface class providing status functionality.)#");
py::class_<IMeshData_ParametersList ,opencascade::handle<IMeshData_ParametersList> ,Py_IMeshData_ParametersList , Standard_Transient >(m,"IMeshData_ParametersList",R"#(Interface class representing list of parameters on curve.)#");
py::class_<IMeshData_Shape ,opencascade::handle<IMeshData_Shape> , Standard_Transient >(m,"IMeshData_Shape",R"#(Interface class representing model with associated TopoDS_Shape. Intended for inheritance by structures and algorithms keeping reference TopoDS_Shape.)#");
py::class_<IMeshData_Curve ,opencascade::handle<IMeshData_Curve> ,Py_IMeshData_Curve , IMeshData_ParametersList >(m,"IMeshData_Curve",R"#(Interface class representing discrete 3d curve of edge. Indexation of points starts from zero.)#");
py::class_<IMeshData_Model ,opencascade::handle<IMeshData_Model> ,Py_IMeshData_Model , IMeshData_Shape >(m,"IMeshData_Model",R"#(Interface class representing discrete model of a shape.)#");
py::class_<IMeshData_PCurve ,opencascade::handle<IMeshData_PCurve> ,Py_IMeshData_PCurve , IMeshData_ParametersList >(m,"IMeshData_PCurve",R"#(Interface class representing pcurve of edge associated with discrete face. Indexation of points starts from zero.)#");
py::class_<IMeshData_TessellatedShape ,opencascade::handle<IMeshData_TessellatedShape> , IMeshData_Shape >(m,"IMeshData_TessellatedShape",R"#(Interface class representing shaped model with deflection.)#");
py::class_<IMeshData_Edge ,opencascade::handle<IMeshData_Edge> ,Py_IMeshData_Edge , IMeshData_TessellatedShape , IMeshData_StatusOwner >(m,"IMeshData_Edge",R"#(Interface class representing discrete model of an edge.)#");
py::class_<IMeshData_Face ,opencascade::handle<IMeshData_Face> ,Py_IMeshData_Face , IMeshData_TessellatedShape , IMeshData_StatusOwner >(m,"IMeshData_Face",R"#(Interface class representing discrete model of a face. Face model contains one or several wires. First wire is always outer one.)#");
py::class_<IMeshData_Wire ,opencascade::handle<IMeshData_Wire> ,Py_IMeshData_Wire , IMeshData_TessellatedShape , IMeshData_StatusOwner >(m,"IMeshData_Wire",R"#(Interface class representing discrete model of a wire. Wire should represent an ordered set of edges.)#");
};
// user-defined post-inclusion per module
// user-defined post
|