File: ShapeProcess.cpp

package info (click to toggle)
python-ocp 7.9.3.1%2B~cs7.9.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 61,552 kB
  • sloc: cpp: 341,803; ansic: 3,829; python: 803; pascal: 37; makefile: 12
file content (507 lines) | stat: -rw-r--r-- 31,192 bytes parent folder | download
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507

// std lib related includes
#include <tuple>

// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;

// Standard Handle
#include <Standard_Handle.hxx>


// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeProcess_Operator.hxx>
#include <ShapeProcess_Context.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Resource_Manager.hxx>
#include <Message_Messenger.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Message_ProgressRange.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeProcess_ShapeContext.hxx>
#include <BRepTools_Modification.hxx>
#include <ShapeExtend_MsgRegistrator.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeProcess_Context.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeExtend_MsgRegistrator.hxx>
#include <ShapeBuild_ReShape.hxx>
#include <BRepTools_Modifier.hxx>
#include <Message_Msg.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>

// module includes
#include <ShapeProcess.hxx>
#include <ShapeProcess_Context.hxx>
#include <ShapeProcess_Operator.hxx>
#include <ShapeProcess_OperFunc.hxx>
#include <ShapeProcess_OperLibrary.hxx>
#include <ShapeProcess_ShapeContext.hxx>
#include <ShapeProcess_UOperator.hxx>

// template related includes


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

// user-defined inclusion per module

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


py::module m = static_cast<py::module>(main_module.attr("ShapeProcess"));
py::object klass;

//Python trampoline classes
    class Py_ShapeProcess_Operator : public ShapeProcess_Operator{
    public:
        using ShapeProcess_Operator::ShapeProcess_Operator;


        // public pure virtual
        Standard_Boolean Perform( const handle<ShapeProcess_Context> & context, const Message_ProgressRange & theProgress) override { using return_type = Standard_Boolean;
    PYBIND11_OVERLOAD_PURE(return_type,ShapeProcess_Operator,Perform,context,theProgress) };


        // protected pure virtual


        // private pure virtual

    };

// classes

    // Class ShapeProcess from ./opencascade/ShapeProcess.hxx
    klass = m.attr("ShapeProcess");

    // default constructor
    register_default_constructor<ShapeProcess , shared_ptr<ShapeProcess>>(m,"ShapeProcess");

    // nested enums
        py::enum_<ShapeProcess::Operation>(klass, "Operation_e", R"#(Describes all available operations. C++11 enum class is not used to allow implicit conversion to underlying type.)#")
            .value("First", ShapeProcess::Operation::First)
            .value("DirectFaces", ShapeProcess::Operation::DirectFaces)
            .value("SameParameter", ShapeProcess::Operation::SameParameter)
            .value("SetTolerance", ShapeProcess::Operation::SetTolerance)
            .value("SplitAngle", ShapeProcess::Operation::SplitAngle)
            .value("BSplineRestriction", ShapeProcess::Operation::BSplineRestriction)
            .value("ElementaryToRevolution", ShapeProcess::Operation::ElementaryToRevolution)
            .value("SweptToElementary", ShapeProcess::Operation::SweptToElementary)
            .value("SurfaceToBSpline", ShapeProcess::Operation::SurfaceToBSpline)
            .value("ToBezier", ShapeProcess::Operation::ToBezier)
            .value("SplitContinuity", ShapeProcess::Operation::SplitContinuity)
            .value("SplitClosedFaces", ShapeProcess::Operation::SplitClosedFaces)
            .value("FixWireGaps", ShapeProcess::Operation::FixWireGaps)
            .value("FixFaceSize", ShapeProcess::Operation::FixFaceSize)
            .value("DropSmallSolids", ShapeProcess::Operation::DropSmallSolids)
            .value("DropSmallEdges", ShapeProcess::Operation::DropSmallEdges)
            .value("FixShape", ShapeProcess::Operation::FixShape)
            .value("SplitClosedEdges", ShapeProcess::Operation::SplitClosedEdges)
            .value("SplitCommonVertex", ShapeProcess::Operation::SplitCommonVertex)
            .value("Last", ShapeProcess::Operation::Last).export_values();

    static_cast<py::class_<ShapeProcess , shared_ptr<ShapeProcess>  >>(klass)
    // constructors
    // custom constructors
    // methods
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("RegisterOperator_s",
                    (Standard_Boolean (*)(  const Standard_CString ,   const handle<ShapeProcess_Operator> &  ) ) static_cast<Standard_Boolean (*)(  const Standard_CString ,   const handle<ShapeProcess_Operator> &  ) >(&ShapeProcess::RegisterOperator),
                    R"#(Registers operator to make it visible for Performer)#"  , py::arg("name"),  py::arg("op")
          )
        .def_static("FindOperator_s",
                    (Standard_Boolean (*)(  const Standard_CString ,  handle<ShapeProcess_Operator> &  ) ) static_cast<Standard_Boolean (*)(  const Standard_CString ,  handle<ShapeProcess_Operator> &  ) >(&ShapeProcess::FindOperator),
                    R"#(Finds operator by its name)#"  , py::arg("name"),  py::arg("op")
          )
        .def_static("Perform_s",
                    (Standard_Boolean (*)(  const handle<ShapeProcess_Context> & ,   const Standard_CString ,   const Message_ProgressRange &  ) ) static_cast<Standard_Boolean (*)(  const handle<ShapeProcess_Context> & ,   const Standard_CString ,   const Message_ProgressRange &  ) >(&ShapeProcess::Perform),
                    R"#(Performs a specified sequence of operators on Context Resource file and other data should be already loaded to Context (including description of sequence seq))#"  , py::arg("context"),  py::arg("seq"),  py::arg("theProgress")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def_static("Perform_s",
                    (Standard_Boolean (*)(  const handle<ShapeProcess_Context> & ,   const typename ShapeProcess::OperationsFlags & ,   const Message_ProgressRange &  ) ) static_cast<Standard_Boolean (*)(  const handle<ShapeProcess_Context> & ,   const typename ShapeProcess::OperationsFlags & ,   const Message_ProgressRange &  ) >(&ShapeProcess::Perform),
                    R"#(Performs a specified sequence of operators on theContext.)#"  , py::arg("theContext"),  py::arg("theOperations"),  py::arg("theProgress")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def_static("ToOperationFlag_s",
                    (std::pair<ShapeProcess::Operation, bool> (*)(  const char *  ) ) static_cast<std::pair<ShapeProcess::Operation, bool> (*)(  const char *  ) >(&ShapeProcess::ToOperationFlag),
                    R"#(Converts operation name to operation flag.)#"  , py::arg("theName")
          )
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class ShapeProcess_Context from ./opencascade/ShapeProcess_Context.hxx
    klass = m.attr("ShapeProcess_Context");


    // nested enums

    static_cast<py::class_<ShapeProcess_Context ,opencascade::handle<ShapeProcess_Context>  , Standard_Transient >>(klass)
    // constructors
        .def(py::init<  >()  )
        .def(py::init<  const Standard_CString, const Standard_CString >()  , py::arg("file"),  py::arg("scope")=static_cast< const Standard_CString>("") )
    // custom constructors
    // methods
        .def("Init",
             (Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_CString  ) ) static_cast<Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_CString  ) >(&ShapeProcess_Context::Init),
             R"#(Initialises a tool by loading resource file and (if specified) sets starting scope Returns False if resource file not found)#"  , py::arg("file"),  py::arg("scope")=static_cast< const Standard_CString>("")
          )
        .def("LoadResourceManager",
             (handle<Resource_Manager> (ShapeProcess_Context::*)(  const Standard_CString  ) ) static_cast<handle<Resource_Manager> (ShapeProcess_Context::*)(  const Standard_CString  ) >(&ShapeProcess_Context::LoadResourceManager),
             R"#(Loading Resource_Manager object if this object not equal internal static Resource_Manager object or internal static Resource_Manager object is null)#"  , py::arg("file")
          )
        .def("SetScope",
             (void (ShapeProcess_Context::*)(  const Standard_CString  ) ) static_cast<void (ShapeProcess_Context::*)(  const Standard_CString  ) >(&ShapeProcess_Context::SetScope),
             R"#(Set a new (sub)scope)#"  , py::arg("scope")
          )
        .def("UnSetScope",
             (void (ShapeProcess_Context::*)() ) static_cast<void (ShapeProcess_Context::*)() >(&ShapeProcess_Context::UnSetScope),
             R"#(Go out of current scope)#" 
          )
        .def("IsParamSet",
             (Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString  ) const) static_cast<Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString  ) const>(&ShapeProcess_Context::IsParamSet),
             R"#(Returns True if parameter is defined in the resource file)#"  , py::arg("param")
          )
        .def("GetReal",
             (Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,  Standard_Real &  ) const) static_cast<Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,  Standard_Real &  ) const>(&ShapeProcess_Context::GetReal),
             R"#()#"  , py::arg("param"),  py::arg("val")
          )
        .def("GetInteger",
             (Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,  Standard_Integer &  ) const) static_cast<Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,  Standard_Integer &  ) const>(&ShapeProcess_Context::GetInteger),
             R"#()#"  , py::arg("param"),  py::arg("val")
          )
        .def("GetBoolean",
             (Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,  Standard_Boolean &  ) const) static_cast<Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,  Standard_Boolean &  ) const>(&ShapeProcess_Context::GetBoolean),
             R"#()#"  , py::arg("param"),  py::arg("val")
          )
        .def("GetString",
             (Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,  TCollection_AsciiString &  ) const) static_cast<Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,  TCollection_AsciiString &  ) const>(&ShapeProcess_Context::GetString),
             R"#(Get value of parameter as being of specific type Returns False if parameter is not defined or has a wrong type)#"  , py::arg("param"),  py::arg("val")
          )
        .def("RealVal",
             (Standard_Real (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_Real  ) const) static_cast<Standard_Real (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_Real  ) const>(&ShapeProcess_Context::RealVal),
             R"#()#"  , py::arg("param"),  py::arg("def_")
          )
        .def("IntegerVal",
             (Standard_Integer (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_Integer  ) const) static_cast<Standard_Integer (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_Integer  ) const>(&ShapeProcess_Context::IntegerVal),
             R"#()#"  , py::arg("param"),  py::arg("def_")
          )
        .def("BooleanVal",
             (Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_Boolean  ) const) static_cast<Standard_Boolean (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_Boolean  ) const>(&ShapeProcess_Context::BooleanVal),
             R"#()#"  , py::arg("param"),  py::arg("def_")
          )
        .def("StringVal",
             (Standard_CString (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_CString  ) const) static_cast<Standard_CString (ShapeProcess_Context::*)(  const Standard_CString ,   const Standard_CString  ) const>(&ShapeProcess_Context::StringVal),
             R"#(Get value of parameter as being of specific type If parameter is not defined or does not have expected type, returns default value as specified)#"  , py::arg("param"),  py::arg("def_")
          )
        .def("SetMessenger",
             (void (ShapeProcess_Context::*)(  const handle<Message_Messenger> &  ) ) static_cast<void (ShapeProcess_Context::*)(  const handle<Message_Messenger> &  ) >(&ShapeProcess_Context::SetMessenger),
             R"#(Sets Messenger used for outputting messages.)#"  , py::arg("messenger")
          )
        .def("Messenger",
             (handle<Message_Messenger> (ShapeProcess_Context::*)() const) static_cast<handle<Message_Messenger> (ShapeProcess_Context::*)() const>(&ShapeProcess_Context::Messenger),
             R"#(Returns Messenger used for outputting messages.)#" 
          )
        .def("SetTraceLevel",
             (void (ShapeProcess_Context::*)(  const Standard_Integer  ) ) static_cast<void (ShapeProcess_Context::*)(  const Standard_Integer  ) >(&ShapeProcess_Context::SetTraceLevel),
             R"#(Sets trace level used for outputting messages - 0: no trace at all - 1: errors - 2: errors and warnings - 3: all messages Default is 1 : Errors traced)#"  , py::arg("tracelev")
          )
        .def("TraceLevel",
             (Standard_Integer (ShapeProcess_Context::*)() const) static_cast<Standard_Integer (ShapeProcess_Context::*)() const>(&ShapeProcess_Context::TraceLevel),
             R"#(Returns trace level used for outputting messages.)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    ( const char * (*)() ) static_cast< const char * (*)() >(&ShapeProcess_Context::get_type_name),
                    R"#()#" 
          )
        .def_static("get_type_descriptor_s",
                    ( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeProcess_Context::get_type_descriptor),
                    R"#()#" 
          )
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
       .def("ResourceManager",
             ( const handle<Resource_Manager> & (ShapeProcess_Context::*)() const) static_cast< const handle<Resource_Manager> & (ShapeProcess_Context::*)() const>(&ShapeProcess_Context::ResourceManager),
             R"#(Returns internal Resource_Manager object)#"
             
         )
       .def("DynamicType",
             ( const handle<Standard_Type> & (ShapeProcess_Context::*)() const) static_cast< const handle<Standard_Type> & (ShapeProcess_Context::*)() const>(&ShapeProcess_Context::DynamicType),
             R"#()#"
             
         )
;

    // Class ShapeProcess_OperLibrary from ./opencascade/ShapeProcess_OperLibrary.hxx
    klass = m.attr("ShapeProcess_OperLibrary");

    // default constructor
    register_default_constructor<ShapeProcess_OperLibrary , shared_ptr<ShapeProcess_OperLibrary>>(m,"ShapeProcess_OperLibrary");

    // nested enums

    static_cast<py::class_<ShapeProcess_OperLibrary , shared_ptr<ShapeProcess_OperLibrary>  >>(klass)
    // constructors
    // custom constructors
    // methods
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("Init_s",
                    (void (*)() ) static_cast<void (*)() >(&ShapeProcess_OperLibrary::Init),
                    R"#(Registers all the operators)#" 
          )
        .def_static("ApplyModifier_s",
                    (TopoDS_Shape (*)(  const TopoDS_Shape & ,   const handle<ShapeProcess_ShapeContext> & ,   const handle<BRepTools_Modification> & ,  TopTools_DataMapOfShapeShape & ,   const handle<ShapeExtend_MsgRegistrator> & ,  Standard_Boolean  ) ) static_cast<TopoDS_Shape (*)(  const TopoDS_Shape & ,   const handle<ShapeProcess_ShapeContext> & ,   const handle<BRepTools_Modification> & ,  TopTools_DataMapOfShapeShape & ,   const handle<ShapeExtend_MsgRegistrator> & ,  Standard_Boolean  ) >(&ShapeProcess_OperLibrary::ApplyModifier),
                    R"#(Applies BRepTools_Modification to a shape, taking into account sharing of components of compounds. if theMutableInput vat is set to true then input shape S can be modified during the modification process.)#"  , py::arg("S"),  py::arg("context"),  py::arg("M"),  py::arg("map"),  py::arg("msg")=static_cast< const handle<ShapeExtend_MsgRegistrator> &>(0),  py::arg("theMutableInput")=static_cast<Standard_Boolean>(Standard_False)
          )
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
;

    // Class ShapeProcess_Operator from ./opencascade/ShapeProcess_Operator.hxx
    klass = m.attr("ShapeProcess_Operator");


    // nested enums

    static_cast<py::class_<ShapeProcess_Operator ,opencascade::handle<ShapeProcess_Operator> ,Py_ShapeProcess_Operator , Standard_Transient >>(klass)
    // constructors
    // custom constructors
    // methods
        .def("Perform",
             (Standard_Boolean (ShapeProcess_Operator::*)(  const handle<ShapeProcess_Context> & ,   const Message_ProgressRange &  ) ) static_cast<Standard_Boolean (ShapeProcess_Operator::*)(  const handle<ShapeProcess_Context> & ,   const Message_ProgressRange &  ) >(&ShapeProcess_Operator::Perform),
             R"#(Performs operation and eventually records changes in the context)#"  , py::arg("context"),  py::arg("theProgress")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    ( const char * (*)() ) static_cast< const char * (*)() >(&ShapeProcess_Operator::get_type_name),
                    R"#()#" 
          )
        .def_static("get_type_descriptor_s",
                    ( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeProcess_Operator::get_type_descriptor),
                    R"#()#" 
          )
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
       .def("DynamicType",
             ( const handle<Standard_Type> & (ShapeProcess_Operator::*)() const) static_cast< const handle<Standard_Type> & (ShapeProcess_Operator::*)() const>(&ShapeProcess_Operator::DynamicType),
             R"#()#"
             
         )
;

    // Class ShapeProcess_ShapeContext from ./opencascade/ShapeProcess_ShapeContext.hxx
    klass = m.attr("ShapeProcess_ShapeContext");


    // nested enums

    static_cast<py::class_<ShapeProcess_ShapeContext ,opencascade::handle<ShapeProcess_ShapeContext>  , ShapeProcess_Context >>(klass)
    // constructors
        .def(py::init<  const Standard_CString, const Standard_CString >()  , py::arg("file"),  py::arg("seq")=static_cast< const Standard_CString>("") )
        .def(py::init<  const TopoDS_Shape &, const Standard_CString, const Standard_CString >()  , py::arg("S"),  py::arg("file"),  py::arg("seq")=static_cast< const Standard_CString>("") )
    // custom constructors
    // methods
        .def("Init",
             (void (ShapeProcess_ShapeContext::*)(  const TopoDS_Shape &  ) ) static_cast<void (ShapeProcess_ShapeContext::*)(  const TopoDS_Shape &  ) >(&ShapeProcess_ShapeContext::Init),
             R"#(Initializes tool by a new shape and clears all results)#"  , py::arg("S")
          )
        .def("SetDetalisation",
             (void (ShapeProcess_ShapeContext::*)(  const TopAbs_ShapeEnum  ) ) static_cast<void (ShapeProcess_ShapeContext::*)(  const TopAbs_ShapeEnum  ) >(&ShapeProcess_ShapeContext::SetDetalisation),
             R"#()#"  , py::arg("level")
          )
        .def("GetDetalisation",
             (TopAbs_ShapeEnum (ShapeProcess_ShapeContext::*)() const) static_cast<TopAbs_ShapeEnum (ShapeProcess_ShapeContext::*)() const>(&ShapeProcess_ShapeContext::GetDetalisation),
             R"#(Set and get value for detalisation level Only shapes of types from TopoDS_COMPOUND and until specified detalisation level will be recorded in maps To cancel mapping, use TopAbs_SHAPE To force full mapping, use TopAbs_VERTEX The default level is TopAbs_FACE)#" 
          )
        .def("SetResult",
             (void (ShapeProcess_ShapeContext::*)(  const TopoDS_Shape &  ) ) static_cast<void (ShapeProcess_ShapeContext::*)(  const TopoDS_Shape &  ) >(&ShapeProcess_ShapeContext::SetResult),
             R"#(Sets a new result shape NOTE: this method should be used very carefully to keep consistency of modifications It is recommended to use RecordModification() methods with explicit definition of mapping from current result to a new one)#"  , py::arg("S")
          )
        .def("RecordModification",
             (void (ShapeProcess_ShapeContext::*)(  const TopTools_DataMapOfShapeShape & ,   const handle<ShapeExtend_MsgRegistrator> &  ) ) static_cast<void (ShapeProcess_ShapeContext::*)(  const TopTools_DataMapOfShapeShape & ,   const handle<ShapeExtend_MsgRegistrator> &  ) >(&ShapeProcess_ShapeContext::RecordModification),
             R"#()#"  , py::arg("repl"),  py::arg("msg")=static_cast< const handle<ShapeExtend_MsgRegistrator> &>(0)
          )
        .def("RecordModification",
             (void (ShapeProcess_ShapeContext::*)(  const handle<ShapeBuild_ReShape> & ,   const handle<ShapeExtend_MsgRegistrator> &  ) ) static_cast<void (ShapeProcess_ShapeContext::*)(  const handle<ShapeBuild_ReShape> & ,   const handle<ShapeExtend_MsgRegistrator> &  ) >(&ShapeProcess_ShapeContext::RecordModification),
             R"#()#"  , py::arg("repl"),  py::arg("msg")
          )
        .def("RecordModification",
             (void (ShapeProcess_ShapeContext::*)(  const handle<ShapeBuild_ReShape> &  ) ) static_cast<void (ShapeProcess_ShapeContext::*)(  const handle<ShapeBuild_ReShape> &  ) >(&ShapeProcess_ShapeContext::RecordModification),
             R"#()#"  , py::arg("repl")
          )
        .def("RecordModification",
             (void (ShapeProcess_ShapeContext::*)(  const TopoDS_Shape & ,   const BRepTools_Modifier & ,   const handle<ShapeExtend_MsgRegistrator> &  ) ) static_cast<void (ShapeProcess_ShapeContext::*)(  const TopoDS_Shape & ,   const BRepTools_Modifier & ,   const handle<ShapeExtend_MsgRegistrator> &  ) >(&ShapeProcess_ShapeContext::RecordModification),
             R"#(Records modifications and resets result accordingly NOTE: modification of resulting shape should be explicitly defined in the maps along with modifications of subshapes)#"  , py::arg("sh"),  py::arg("repl"),  py::arg("msg")=static_cast< const handle<ShapeExtend_MsgRegistrator> &>(0)
          )
        .def("AddMessage",
             (void (ShapeProcess_ShapeContext::*)(  const TopoDS_Shape & ,   const Message_Msg & ,   const Message_Gravity  ) ) static_cast<void (ShapeProcess_ShapeContext::*)(  const TopoDS_Shape & ,   const Message_Msg & ,   const Message_Gravity  ) >(&ShapeProcess_ShapeContext::AddMessage),
             R"#(Record a message for shape S Shape S should be one of subshapes of original shape (or whole one), but not one of intermediate shapes Records only if Message() is not Null)#"  , py::arg("S"),  py::arg("msg"),  py::arg("gravity")=static_cast< const Message_Gravity>(Message_Warning)
          )
        .def("GetContinuity",
             (Standard_Boolean (ShapeProcess_ShapeContext::*)(  const Standard_CString ,  GeomAbs_Shape &  ) const) static_cast<Standard_Boolean (ShapeProcess_ShapeContext::*)(  const Standard_CString ,  GeomAbs_Shape &  ) const>(&ShapeProcess_ShapeContext::GetContinuity),
             R"#(Get value of parameter as being of the type GeomAbs_Shape Returns False if parameter is not defined or has a wrong type)#"  , py::arg("param"),  py::arg("val")
          )
        .def("ContinuityVal",
             (GeomAbs_Shape (ShapeProcess_ShapeContext::*)(  const Standard_CString ,   const GeomAbs_Shape  ) const) static_cast<GeomAbs_Shape (ShapeProcess_ShapeContext::*)(  const Standard_CString ,   const GeomAbs_Shape  ) const>(&ShapeProcess_ShapeContext::ContinuityVal),
             R"#(Get value of parameter as being of the type GeomAbs_Shape If parameter is not defined or does not have expected type, returns default value as specified)#"  , py::arg("param"),  py::arg("def_")
          )
        .def("PrintStatistics",
             (void (ShapeProcess_ShapeContext::*)() const) static_cast<void (ShapeProcess_ShapeContext::*)() const>(&ShapeProcess_ShapeContext::PrintStatistics),
             R"#(Prints statistics on Shape Processing onto the current Messenger.)#" 
          )
        .def("SetNonManifold",
             (void (ShapeProcess_ShapeContext::*)( Standard_Boolean  ) ) static_cast<void (ShapeProcess_ShapeContext::*)( Standard_Boolean  ) >(&ShapeProcess_ShapeContext::SetNonManifold),
             R"#(Set NonManifold flag)#"  , py::arg("theNonManifold")
          )
        .def("IsNonManifold",
             (Standard_Boolean (ShapeProcess_ShapeContext::*)() ) static_cast<Standard_Boolean (ShapeProcess_ShapeContext::*)() >(&ShapeProcess_ShapeContext::IsNonManifold),
             R"#(Get NonManifold flag)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    ( const char * (*)() ) static_cast< const char * (*)() >(&ShapeProcess_ShapeContext::get_type_name),
                    R"#()#" 
          )
        .def_static("get_type_descriptor_s",
                    ( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeProcess_ShapeContext::get_type_descriptor),
                    R"#()#" 
          )
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
       .def("Shape",
             ( const TopoDS_Shape & (ShapeProcess_ShapeContext::*)() const) static_cast< const TopoDS_Shape & (ShapeProcess_ShapeContext::*)() const>(&ShapeProcess_ShapeContext::Shape),
             R"#(Returns shape being processed)#"
             
         )
       .def("Result",
             ( const TopoDS_Shape & (ShapeProcess_ShapeContext::*)() const) static_cast< const TopoDS_Shape & (ShapeProcess_ShapeContext::*)() const>(&ShapeProcess_ShapeContext::Result),
             R"#(Returns current result)#"
             
         )
       .def("Map",
             ( const TopTools_DataMapOfShapeShape & (ShapeProcess_ShapeContext::*)() const) static_cast< const TopTools_DataMapOfShapeShape & (ShapeProcess_ShapeContext::*)() const>(&ShapeProcess_ShapeContext::Map),
             R"#(Returns map of replacements shape -> shape This map is not recursive)#"
             
         )
       .def("Messages",
             ( const handle<ShapeExtend_MsgRegistrator> & (ShapeProcess_ShapeContext::*)() const) static_cast< const handle<ShapeExtend_MsgRegistrator> & (ShapeProcess_ShapeContext::*)() const>(&ShapeProcess_ShapeContext::Messages),
             R"#()#"
             
         )
       .def("Messages",
             (handle<ShapeExtend_MsgRegistrator> & (ShapeProcess_ShapeContext::*)() ) static_cast<handle<ShapeExtend_MsgRegistrator> & (ShapeProcess_ShapeContext::*)() >(&ShapeProcess_ShapeContext::Messages),
             R"#(Returns messages recorded during shape processing It can be nullified before processing in order to avoid recording messages)#"
             
         )
       .def("DynamicType",
             ( const handle<Standard_Type> & (ShapeProcess_ShapeContext::*)() const) static_cast< const handle<Standard_Type> & (ShapeProcess_ShapeContext::*)() const>(&ShapeProcess_ShapeContext::DynamicType),
             R"#()#"
             
         )
;

    // Class ShapeProcess_UOperator from ./opencascade/ShapeProcess_UOperator.hxx
    klass = m.attr("ShapeProcess_UOperator");


    // nested enums

    static_cast<py::class_<ShapeProcess_UOperator ,opencascade::handle<ShapeProcess_UOperator>  , ShapeProcess_Operator >>(klass)
    // constructors
        .def(py::init<  const ShapeProcess_OperFunc >()  , py::arg("func") )
    // custom constructors
    // methods
        .def("Perform",
             (Standard_Boolean (ShapeProcess_UOperator::*)(  const handle<ShapeProcess_Context> & ,   const Message_ProgressRange &  ) ) static_cast<Standard_Boolean (ShapeProcess_UOperator::*)(  const handle<ShapeProcess_Context> & ,   const Message_ProgressRange &  ) >(&ShapeProcess_UOperator::Perform),
             R"#(Performs operation and records changes in the context)#"  , py::arg("context"),  py::arg("theProgress")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    ( const char * (*)() ) static_cast< const char * (*)() >(&ShapeProcess_UOperator::get_type_name),
                    R"#()#" 
          )
        .def_static("get_type_descriptor_s",
                    ( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeProcess_UOperator::get_type_descriptor),
                    R"#()#" 
          )
    // static methods using call by reference i.s.o. return
    // operators
    // additional methods and static methods
    // properties
    // methods returning by ref wrapped as properties
       .def("DynamicType",
             ( const handle<Standard_Type> & (ShapeProcess_UOperator::*)() const) static_cast< const handle<Standard_Type> & (ShapeProcess_UOperator::*)() const>(&ShapeProcess_UOperator::DynamicType),
             R"#()#"
             
         )
;

// functions

// ./opencascade/ShapeProcess.hxx
// ./opencascade/ShapeProcess_Context.hxx
// ./opencascade/ShapeProcess_OperFunc.hxx
// ./opencascade/ShapeProcess_OperLibrary.hxx
// ./opencascade/ShapeProcess_Operator.hxx
// ./opencascade/ShapeProcess_ShapeContext.hxx
// ./opencascade/ShapeProcess_UOperator.hxx

// Additional functions


// operators

// register typdefs


// exceptions

// user-defined post-inclusion per module in the body

};

// user-defined post-inclusion per module

// user-defined post