File: BRepGProp_pre.cpp

package info (click to toggle)
python-ocp 7.8.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 64,724 kB
  • sloc: cpp: 362,337; pascal: 33; python: 23; makefile: 4
file content (115 lines) | stat: -rw-r--r-- 6,056 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

// 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_Shape.hxx>
#include <GProp_GProps.hxx>
#include <gp_Pln.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepAdaptor_Curve.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 <BRepAdaptor_Curve.hxx>
#include <gp_Pnt.hxx>
#include <gp_Vec.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 <Poly_Triangulation.hxx>
#include <TopLoc_Location.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepGProp_Face.hxx>
#include <BRepGProp_Domain.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepGProp_Face.hxx>
#include <gp_Pln.hxx>
#include <BRepGProp_Domain.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepGProp_Face.hxx>
#include <BRepGProp_Domain.hxx>
#include <gp_Pln.hxx>

// module includes
#include <BRepGProp.hxx>
#include <BRepGProp_Cinert.hxx>
#include <BRepGProp_Domain.hxx>
#include <BRepGProp_EdgeTool.hxx>
#include <BRepGProp_Face.hxx>
#include <BRepGProp_MeshCinert.hxx>
#include <BRepGProp_MeshProps.hxx>
#include <BRepGProp_Sinert.hxx>
#include <BRepGProp_TFunction.hxx>
#include <BRepGProp_UFunction.hxx>
#include <BRepGProp_Vinert.hxx>
#include <BRepGProp_VinertGK.hxx>

// template related includes


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

// user-defined inclusion per module

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


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

// user-defined inclusion per module in the body

// enums

//Python trampoline classes

// pre-register typdefs+classes (topologically sorted)
    py::class_<BRepGProp , shared_ptr<BRepGProp>  >(m,"BRepGProp",R"#(Provides global functions to compute a shape's global properties for lines, surfaces or volumes, and bring them together with the global properties already computed for a geometric system. The global properties computed for a system are : - its mass, - its center of mass, - its matrix of inertia, - its moment about an axis, - its radius of gyration about an axis, - and its principal properties of inertia such as principal axis, principal moments, principal radius of gyration.)#");
    py::class_<BRepGProp_Domain , shared_ptr<BRepGProp_Domain>  >(m,"BRepGProp_Domain",R"#(Arc iterator. Returns only Forward and Reversed edges from the face in an undigested order.)#");
    py::class_<BRepGProp_EdgeTool , shared_ptr<BRepGProp_EdgeTool>  >(m,"BRepGProp_EdgeTool",R"#(Provides the required methods to instantiate CGProps from GProp with a Curve from BRepAdaptor.)#");
    py::class_<BRepGProp_Face , shared_ptr<BRepGProp_Face>  >(m,"BRepGProp_Face",R"#(None)#");
    py::class_<BRepGProp_Cinert , shared_ptr<BRepGProp_Cinert>  , GProp_GProps >(m,"BRepGProp_Cinert",R"#(Computes the global properties of bounded curves in 3D space. The curve must have at least a continuity C1. It can be a curve as defined in the template CurveTool from package GProp. This template gives the minimum of methods required to evaluate the global properties of a curve 3D with the algorithms of GProp.)#");
    py::class_<BRepGProp_MeshCinert , shared_ptr<BRepGProp_MeshCinert>  , GProp_GProps >(m,"BRepGProp_MeshCinert",R"#(Computes the global properties of of polylines represented by set of points. This class is used for computation of global properties of edge, which has no exact geometry (3d or 2d curve), but has any of allowed polygons.)#");
    py::class_<BRepGProp_MeshProps , shared_ptr<BRepGProp_MeshProps>  , GProp_GProps >(m,"BRepGProp_MeshProps",R"#(Computes the global properties of a surface mesh. The mesh can be interpreted as just a surface or as a piece of volume limited by this surface.)#");
    py::class_<BRepGProp_Sinert , shared_ptr<BRepGProp_Sinert>  , GProp_GProps >(m,"BRepGProp_Sinert",R"#(Computes the global properties of a face in 3D space. The face 's requirements to evaluate the global properties are defined in the template FaceTool from package GProp.)#");
    py::class_<BRepGProp_TFunction , shared_ptr<BRepGProp_TFunction>  , math_Function >(m,"BRepGProp_TFunction",R"#(This class represents the integrand function for the outer integral computation. The returned value represents the integral of UFunction. It depends on the value type and the flag IsByPoint.)#");
    py::class_<BRepGProp_UFunction , shared_ptr<BRepGProp_UFunction>  , math_Function >(m,"BRepGProp_UFunction",R"#(This class represents the integrand function for computation of an inner integral. The returned value depends on the value type and the flag IsByPoint.)#");
    py::class_<BRepGProp_Vinert , shared_ptr<BRepGProp_Vinert>  , GProp_GProps >(m,"BRepGProp_Vinert",R"#(Computes the global properties of a geometric solid (3D closed region of space) delimited with : . a surface . a point and a surface . a plane and a surface)#");
    py::class_<BRepGProp_VinertGK , shared_ptr<BRepGProp_VinertGK>  , GProp_GProps >(m,"BRepGProp_VinertGK",R"#(Computes the global properties of a geometric solid (3D closed region of space) delimited with : - a point and a surface - a plane and a surface)#");

};

// user-defined post-inclusion per module

// user-defined post