File: BRepCheck_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 (176 lines) | stat: -rw-r--r-- 8,606 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
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

// 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 <TopoDS_Wire.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_Surface.hxx>
#include <BRep_CurveRepresentation.hxx>
#include <TopoDS_Edge.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.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_Shell.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Solid.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_Vertex.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Edge.hxx>

// module includes
#include <BRepCheck.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <BRepCheck_DataMapOfShapeListOfStatus.hxx>
#include <BRepCheck_Edge.hxx>
#include <BRepCheck_Face.hxx>
#include <BRepCheck_IndexedDataMapOfShapeResult.hxx>
#include <BRepCheck_ListIteratorOfListOfStatus.hxx>
#include <BRepCheck_ListOfStatus.hxx>
#include <BRepCheck_Result.hxx>
#include <BRepCheck_Shell.hxx>
#include <BRepCheck_Solid.hxx>
#include <BRepCheck_Status.hxx>
#include <BRepCheck_Vertex.hxx>
#include <BRepCheck_Wire.hxx>

// template related includes

#include "NCollection_tmpl.hxx"


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

// user-defined inclusion per module

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


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

// user-defined inclusion per module in the body

// enums
    py::enum_<BRepCheck_Status>(m, "BRepCheck_Status",R"#(None)#")
        .value("BRepCheck_NoError",BRepCheck_Status::BRepCheck_NoError)
        .value("BRepCheck_InvalidPointOnCurve",BRepCheck_Status::BRepCheck_InvalidPointOnCurve)
        .value("BRepCheck_InvalidPointOnCurveOnSurface",BRepCheck_Status::BRepCheck_InvalidPointOnCurveOnSurface)
        .value("BRepCheck_InvalidPointOnSurface",BRepCheck_Status::BRepCheck_InvalidPointOnSurface)
        .value("BRepCheck_No3DCurve",BRepCheck_Status::BRepCheck_No3DCurve)
        .value("BRepCheck_Multiple3DCurve",BRepCheck_Status::BRepCheck_Multiple3DCurve)
        .value("BRepCheck_Invalid3DCurve",BRepCheck_Status::BRepCheck_Invalid3DCurve)
        .value("BRepCheck_NoCurveOnSurface",BRepCheck_Status::BRepCheck_NoCurveOnSurface)
        .value("BRepCheck_InvalidCurveOnSurface",BRepCheck_Status::BRepCheck_InvalidCurveOnSurface)
        .value("BRepCheck_InvalidCurveOnClosedSurface",BRepCheck_Status::BRepCheck_InvalidCurveOnClosedSurface)
        .value("BRepCheck_InvalidSameRangeFlag",BRepCheck_Status::BRepCheck_InvalidSameRangeFlag)
        .value("BRepCheck_InvalidSameParameterFlag",BRepCheck_Status::BRepCheck_InvalidSameParameterFlag)
        .value("BRepCheck_InvalidDegeneratedFlag",BRepCheck_Status::BRepCheck_InvalidDegeneratedFlag)
        .value("BRepCheck_FreeEdge",BRepCheck_Status::BRepCheck_FreeEdge)
        .value("BRepCheck_InvalidMultiConnexity",BRepCheck_Status::BRepCheck_InvalidMultiConnexity)
        .value("BRepCheck_InvalidRange",BRepCheck_Status::BRepCheck_InvalidRange)
        .value("BRepCheck_EmptyWire",BRepCheck_Status::BRepCheck_EmptyWire)
        .value("BRepCheck_RedundantEdge",BRepCheck_Status::BRepCheck_RedundantEdge)
        .value("BRepCheck_SelfIntersectingWire",BRepCheck_Status::BRepCheck_SelfIntersectingWire)
        .value("BRepCheck_NoSurface",BRepCheck_Status::BRepCheck_NoSurface)
        .value("BRepCheck_InvalidWire",BRepCheck_Status::BRepCheck_InvalidWire)
        .value("BRepCheck_RedundantWire",BRepCheck_Status::BRepCheck_RedundantWire)
        .value("BRepCheck_IntersectingWires",BRepCheck_Status::BRepCheck_IntersectingWires)
        .value("BRepCheck_InvalidImbricationOfWires",BRepCheck_Status::BRepCheck_InvalidImbricationOfWires)
        .value("BRepCheck_EmptyShell",BRepCheck_Status::BRepCheck_EmptyShell)
        .value("BRepCheck_RedundantFace",BRepCheck_Status::BRepCheck_RedundantFace)
        .value("BRepCheck_InvalidImbricationOfShells",BRepCheck_Status::BRepCheck_InvalidImbricationOfShells)
        .value("BRepCheck_UnorientableShape",BRepCheck_Status::BRepCheck_UnorientableShape)
        .value("BRepCheck_NotClosed",BRepCheck_Status::BRepCheck_NotClosed)
        .value("BRepCheck_NotConnected",BRepCheck_Status::BRepCheck_NotConnected)
        .value("BRepCheck_SubshapeNotInShape",BRepCheck_Status::BRepCheck_SubshapeNotInShape)
        .value("BRepCheck_BadOrientation",BRepCheck_Status::BRepCheck_BadOrientation)
        .value("BRepCheck_BadOrientationOfSubshape",BRepCheck_Status::BRepCheck_BadOrientationOfSubshape)
        .value("BRepCheck_InvalidPolygonOnTriangulation",BRepCheck_Status::BRepCheck_InvalidPolygonOnTriangulation)
        .value("BRepCheck_InvalidToleranceValue",BRepCheck_Status::BRepCheck_InvalidToleranceValue)
        .value("BRepCheck_EnclosedRegion",BRepCheck_Status::BRepCheck_EnclosedRegion)
        .value("BRepCheck_CheckFail",BRepCheck_Status::BRepCheck_CheckFail).export_values();

//Python trampoline classes
    class Py_BRepCheck_Result : public BRepCheck_Result{
    public:
        using BRepCheck_Result::BRepCheck_Result;


        // public pure virtual
        void InContext(const TopoDS_Shape & ContextShape) override { PYBIND11_OVERLOAD_PURE(void,BRepCheck_Result,InContext,ContextShape) };
        void Minimum() override { PYBIND11_OVERLOAD_PURE(void,BRepCheck_Result,Minimum,) };
        void Blind() override { PYBIND11_OVERLOAD_PURE(void,BRepCheck_Result,Blind,) };


        // protected pure virtual


        // private pure virtual

    };

// pre-register typdefs+classes (topologically sorted)
    py::class_<BRepCheck , shared_ptr<BRepCheck>  >(m,"BRepCheck",R"#(This package provides tools to check the validity of the BRep.)#");
    py::class_<BRepCheck_Analyzer , shared_ptr<BRepCheck_Analyzer>  >(m,"BRepCheck_Analyzer",R"#(A framework to check the overall validity of a shape. For a shape to be valid in Open CASCADE, it - or its component subshapes - must respect certain criteria. These criteria are checked by the function IsValid. Once you have determined whether a shape is valid or not, you can diagnose its specific anomalies and correct them using the services of the ShapeAnalysis, ShapeUpgrade, and ShapeFix packages.)#");
    preregister_template_NCollection_List<BRepCheck_Status>(m,"BRepCheck_ListOfStatus");
    py::class_<BRepCheck_Result ,opencascade::handle<BRepCheck_Result> ,Py_BRepCheck_Result , Standard_Transient >(m,"BRepCheck_Result",R"#()#");
    py::class_<BRepCheck_Edge ,opencascade::handle<BRepCheck_Edge>  , BRepCheck_Result >(m,"BRepCheck_Edge",R"#()#");
    py::class_<BRepCheck_Face ,opencascade::handle<BRepCheck_Face>  , BRepCheck_Result >(m,"BRepCheck_Face",R"#()#");
    py::class_<BRepCheck_Shell ,opencascade::handle<BRepCheck_Shell>  , BRepCheck_Result >(m,"BRepCheck_Shell",R"#()#");
    py::class_<BRepCheck_Solid ,opencascade::handle<BRepCheck_Solid>  , BRepCheck_Result >(m,"BRepCheck_Solid",R"#(The class is to check a solid.The class is to check a solid.The class is to check a solid.)#");
    py::class_<BRepCheck_Vertex ,opencascade::handle<BRepCheck_Vertex>  , BRepCheck_Result >(m,"BRepCheck_Vertex",R"#()#");
    py::class_<BRepCheck_Wire ,opencascade::handle<BRepCheck_Wire>  , BRepCheck_Result >(m,"BRepCheck_Wire",R"#()#");

};

// user-defined post-inclusion per module

// user-defined post