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
|
// 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_Wire.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Shape.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 <LocOpe_WiresOnShape.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <LocOpe_PntFace.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <gp_Ax1.hxx>
#include <gp_Circ.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 <TopoDS_Edge.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Face.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <LocOpe_GeneratedShape.hxx>
#include <TopoDS_Face.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.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 <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 <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 <TopoDS_Face.hxx>
#include <TopoDS_Wire.hxx>
#include <gp_Pln.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Face.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <LocOpe_WiresOnShape.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Compound.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
// module includes
#include <LocOpe.hxx>
#include <LocOpe_BuildShape.hxx>
#include <LocOpe_BuildWires.hxx>
#include <LocOpe_CSIntersector.hxx>
#include <LocOpe_CurveShapeIntersector.hxx>
#include <LocOpe_DataMapIteratorOfDataMapOfShapePnt.hxx>
#include <LocOpe_DataMapOfShapePnt.hxx>
#include <LocOpe_DPrism.hxx>
#include <LocOpe_FindEdges.hxx>
#include <LocOpe_FindEdgesInFace.hxx>
#include <LocOpe_GeneratedShape.hxx>
#include <LocOpe_Generator.hxx>
#include <LocOpe_GluedShape.hxx>
#include <LocOpe_Gluer.hxx>
#include <LocOpe_LinearForm.hxx>
#include <LocOpe_Operation.hxx>
#include <LocOpe_Pipe.hxx>
#include <LocOpe_PntFace.hxx>
#include <LocOpe_Prism.hxx>
#include <LocOpe_Revol.hxx>
#include <LocOpe_RevolutionForm.hxx>
#include <LocOpe_SequenceOfCirc.hxx>
#include <LocOpe_SequenceOfLin.hxx>
#include <LocOpe_SequenceOfPntFace.hxx>
#include <LocOpe_SplitDrafts.hxx>
#include <LocOpe_Spliter.hxx>
#include <LocOpe_SplitShape.hxx>
#include <LocOpe_WiresOnShape.hxx>
// template related includes
#include "NCollection_tmpl.hxx"
#include "NCollection_tmpl.hxx"
#include "NCollection_tmpl.hxx"
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_LocOpe_enums(py::module &main_module) {
py::module m = main_module.def_submodule("LocOpe", R"#()#");
// user-defined inclusion per module in the body
// enums
py::enum_<LocOpe_Operation>(m, "LocOpe_Operation",R"#(None)#")
.value("LocOpe_FUSE",LocOpe_Operation::LocOpe_FUSE)
.value("LocOpe_CUT",LocOpe_Operation::LocOpe_CUT)
.value("LocOpe_INVALID",LocOpe_Operation::LocOpe_INVALID).export_values();
//Python trampoline classes
class Py_LocOpe_GeneratedShape : public LocOpe_GeneratedShape{
public:
using LocOpe_GeneratedShape::LocOpe_GeneratedShape;
// public pure virtual
const TopTools_ListOfShape & GeneratingEdges() override { PYBIND11_OVERLOAD_PURE(const TopTools_ListOfShape &,LocOpe_GeneratedShape,GeneratingEdges,) };
TopoDS_Edge Generated(const TopoDS_Vertex & V) override { PYBIND11_OVERLOAD_PURE(TopoDS_Edge,LocOpe_GeneratedShape,Generated,V) };
TopoDS_Face Generated(const TopoDS_Edge & E) override { PYBIND11_OVERLOAD_PURE(TopoDS_Face,LocOpe_GeneratedShape,Generated,E) };
const TopTools_ListOfShape & OrientedFaces() override { PYBIND11_OVERLOAD_PURE(const TopTools_ListOfShape &,LocOpe_GeneratedShape,OrientedFaces,) };
// protected pure virtual
// private pure virtual
};
// pre-register typdefs+classes (topologically sorted)
py::class_<LocOpe , shared_ptr<LocOpe> >(m,"LocOpe",R"#(Provides tools to implement local topological operations on a shape.)#");
py::class_<LocOpe_BuildShape , shared_ptr<LocOpe_BuildShape> >(m,"LocOpe_BuildShape",R"#(None)#");
py::class_<LocOpe_BuildWires , shared_ptr<LocOpe_BuildWires> >(m,"LocOpe_BuildWires",R"#(None)#");
py::class_<LocOpe_CSIntersector , shared_ptr<LocOpe_CSIntersector> >(m,"LocOpe_CSIntersector",R"#(This class provides the intersection between a set of axis or a circle and the faces of a shape. The intersection points are sorted in increasing parameter along each axis or circle.)#");
py::class_<LocOpe_CurveShapeIntersector , shared_ptr<LocOpe_CurveShapeIntersector> >(m,"LocOpe_CurveShapeIntersector",R"#(This class provides the intersection between an axis or a circle and the faces of a shape. The intersection points are sorted in increasing parameter along the axis.)#");
py::class_<LocOpe_DPrism , shared_ptr<LocOpe_DPrism> >(m,"LocOpe_DPrism",R"#(Defines a pipe (near from Pipe from BRepFill), with modifications provided for the Pipe feature.)#");
py::class_<LocOpe_FindEdges , shared_ptr<LocOpe_FindEdges> >(m,"LocOpe_FindEdges",R"#(None)#");
py::class_<LocOpe_FindEdgesInFace , shared_ptr<LocOpe_FindEdgesInFace> >(m,"LocOpe_FindEdgesInFace",R"#(None)#");
py::class_<LocOpe_Generator , shared_ptr<LocOpe_Generator> >(m,"LocOpe_Generator",R"#(None)#");
py::class_<LocOpe_Gluer , shared_ptr<LocOpe_Gluer> >(m,"LocOpe_Gluer",R"#(None)#");
py::class_<LocOpe_LinearForm , shared_ptr<LocOpe_LinearForm> >(m,"LocOpe_LinearForm",R"#(Defines a linear form (using Prism from BRepSweep) with modifications provided for the LinearForm feature.)#");
py::class_<LocOpe_Pipe , shared_ptr<LocOpe_Pipe> >(m,"LocOpe_Pipe",R"#(Defines a pipe (near from Pipe from BRepFill), with modifications provided for the Pipe feature.)#");
py::class_<LocOpe_PntFace , shared_ptr<LocOpe_PntFace> >(m,"LocOpe_PntFace",R"#(None)#");
py::class_<LocOpe_Prism , shared_ptr<LocOpe_Prism> >(m,"LocOpe_Prism",R"#(Defines a prism (using Prism from BRepSweep) with modifications provided for the Prism feature.)#");
py::class_<LocOpe_Revol , shared_ptr<LocOpe_Revol> >(m,"LocOpe_Revol",R"#(Defines a prism (using Prism from BRepSweep) with modifications provided for the Prism feature.)#");
py::class_<LocOpe_RevolutionForm , shared_ptr<LocOpe_RevolutionForm> >(m,"LocOpe_RevolutionForm",R"#(Defines a revolution form (using Revol from BRepSweep) with modifications provided for the RevolutionForm feature.)#");
py::class_<LocOpe_SplitDrafts , shared_ptr<LocOpe_SplitDrafts> >(m,"LocOpe_SplitDrafts",R"#(This class provides a tool to realize the following operations on a shape : - split a face of the shape with a wire, - put draft angle on both side of the wire. For each side, the draft angle may be different.)#");
py::class_<LocOpe_SplitShape , shared_ptr<LocOpe_SplitShape> >(m,"LocOpe_SplitShape",R"#(Provides a tool to cut : - edges with a vertices, - faces with wires, and rebuilds the shape containing the edges and the faces.)#");
py::class_<LocOpe_Spliter , shared_ptr<LocOpe_Spliter> >(m,"LocOpe_Spliter",R"#(None)#");
preregister_template_NCollection_DataMap<TopoDS_Shape, gp_Pnt, TopTools_ShapeMapHasher>(m,"LocOpe_DataMapOfShapePnt");
py::class_<LocOpe_GeneratedShape ,opencascade::handle<LocOpe_GeneratedShape> ,Py_LocOpe_GeneratedShape , Standard_Transient >(m,"LocOpe_GeneratedShape",R"#()#");
preregister_template_NCollection_Sequence<gp_Circ>(m,"LocOpe_SequenceOfCirc");
preregister_template_NCollection_Sequence<gp_Lin>(m,"LocOpe_SequenceOfLin");
preregister_template_NCollection_Sequence<LocOpe_PntFace>(m,"LocOpe_SequenceOfPntFace");
py::class_<LocOpe_WiresOnShape ,opencascade::handle<LocOpe_WiresOnShape> , Standard_Transient >(m,"LocOpe_WiresOnShape",R"#()#");
py::class_<LocOpe_GluedShape ,opencascade::handle<LocOpe_GluedShape> , LocOpe_GeneratedShape >(m,"LocOpe_GluedShape",R"#()#");
};
// user-defined post-inclusion per module
// user-defined post
|