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
|
// 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 <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <CSLib.hxx>
#include <CSLib_Class2d.hxx>
#include <CSLib_DerivativeStatus.hxx>
#include <CSLib_NormalPolyDef.hxx>
#include <CSLib_NormalStatus.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_CSLib_enums(py::module &main_module) {
py::module m = main_module.def_submodule("CSLib", R"#()#");
// user-defined inclusion per module in the body
// enums
py::enum_<CSLib_NormalStatus>(m, "CSLib_NormalStatus",R"#(if N is the normal)#")
.value("CSLib_Singular",CSLib_NormalStatus::CSLib_Singular)
.value("CSLib_Defined",CSLib_NormalStatus::CSLib_Defined)
.value("CSLib_InfinityOfSolutions",CSLib_NormalStatus::CSLib_InfinityOfSolutions)
.value("CSLib_D1NuIsNull",CSLib_NormalStatus::CSLib_D1NuIsNull)
.value("CSLib_D1NvIsNull",CSLib_NormalStatus::CSLib_D1NvIsNull)
.value("CSLib_D1NIsNull",CSLib_NormalStatus::CSLib_D1NIsNull)
.value("CSLib_D1NuNvRatioIsNull",CSLib_NormalStatus::CSLib_D1NuNvRatioIsNull)
.value("CSLib_D1NvNuRatioIsNull",CSLib_NormalStatus::CSLib_D1NvNuRatioIsNull)
.value("CSLib_D1NuIsParallelD1Nv",CSLib_NormalStatus::CSLib_D1NuIsParallelD1Nv).export_values();
py::enum_<CSLib_DerivativeStatus>(m, "CSLib_DerivativeStatus",R"#(D1uIsNull : ||D1U|| <= Resolution)#")
.value("CSLib_Done",CSLib_DerivativeStatus::CSLib_Done)
.value("CSLib_D1uIsNull",CSLib_DerivativeStatus::CSLib_D1uIsNull)
.value("CSLib_D1vIsNull",CSLib_DerivativeStatus::CSLib_D1vIsNull)
.value("CSLib_D1IsNull",CSLib_DerivativeStatus::CSLib_D1IsNull)
.value("CSLib_D1uD1vRatioIsNull",CSLib_DerivativeStatus::CSLib_D1uD1vRatioIsNull)
.value("CSLib_D1vD1uRatioIsNull",CSLib_DerivativeStatus::CSLib_D1vD1uRatioIsNull)
.value("CSLib_D1uIsParallelD1v",CSLib_DerivativeStatus::CSLib_D1uIsParallelD1v).export_values();
//Python trampoline classes
// pre-register typdefs+classes (topologically sorted)
py::class_<CSLib , shared_ptr<CSLib> >(m,"CSLib",R"#(This package implements functions for basis geometric computation on curves and surfaces. The tolerance criterions used in this package are Resolution from package gp and RealEpsilon from class Real of package Standard.)#");
py::class_<CSLib_Class2d , shared_ptr<CSLib_Class2d> >(m,"CSLib_Class2d",R"#(*** Class2d : Low level algorithm for 2d classification this class was moved from package BRepTopAdaptor)#");
py::class_<CSLib_NormalPolyDef , shared_ptr<CSLib_NormalPolyDef> , math_FunctionWithDerivative >(m,"CSLib_NormalPolyDef",R"#(None)#");
};
// user-defined post-inclusion per module
// user-defined post
|