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
|
// 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 <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 <Message_ProgressRange.hxx>
// module includes
#include <RWStl.hxx>
#include <RWStl_ConfigurationNode.hxx>
#include <RWStl_Provider.hxx>
#include <RWStl_Reader.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
#include <DE_ConfigurationContext.hxx>
#include <NCollection_Buffer.hxx>
#include <TDocStd_Document.hxx>
#include <XSControl_WorkSession.hxx>
#include <TopoDS_Shape.hxx>
// Module definiiton
void register_RWStl_enums(py::module &main_module) {
py::module m = main_module.def_submodule("RWStl", R"#()#");
// user-defined inclusion per module in the body
// enums
//Python trampoline classes
class Py_RWStl_Reader : public RWStl_Reader{
public:
using RWStl_Reader::RWStl_Reader;
// public pure virtual
Standard_Integer AddNode(const gp_XYZ & thePnt) override { PYBIND11_OVERLOAD_PURE(Standard_Integer,RWStl_Reader,AddNode,thePnt) };
void AddTriangle(Standard_Integer theN1,Standard_Integer theN2,Standard_Integer theN3) override { PYBIND11_OVERLOAD_PURE(void,RWStl_Reader,AddTriangle,theN1,theN2,theN3) };
// protected pure virtual
// private pure virtual
};
// pre-register typdefs+classes (topologically sorted)
py::class_<RWStl , shared_ptr<RWStl> >(m,"RWStl",R"#(This class provides methods to read and write triangulation from / to the STL files.)#");
py::class_<RWStl_ConfigurationNode ,opencascade::handle<RWStl_ConfigurationNode> , DE_ConfigurationNode >(m,"RWStl_ConfigurationNode",R"#(The purpose of this class is to configure the transfer process for STL format Stores the necessary settings for RWStl_Provider. Configures and creates special provider to transfer STL files.)#");
py::class_<RWStl_Provider ,opencascade::handle<RWStl_Provider> , DE_Provider >(m,"RWStl_Provider",R"#(The class to transfer STL files. Reads and Writes any STL files into/from OCCT. Each operation needs configuration node.)#");
py::class_<RWStl_Reader ,opencascade::handle<RWStl_Reader> ,Py_RWStl_Reader , Standard_Transient >(m,"RWStl_Reader",R"#(An abstract class implementing procedure to read STL file.)#");
};
// user-defined post-inclusion per module
// user-defined post
|