File: GProp_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 (130 lines) | stat: -rw-r--r-- 7,567 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

// 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 <gp_Pnt.hxx>
#include <gp_Mat.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <gp_Circ.hxx>
#include <gp_Lin.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 <gp_Ax1.hxx>
#include <GProp_PrincipalProps.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <gp_Pln.hxx>
#include <gp_Lin.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 <gp_Cylinder.hxx>
#include <gp_Cone.hxx>
#include <gp_Sphere.hxx>
#include <gp_Torus.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 <gp_Cylinder.hxx>
#include <gp_Cone.hxx>
#include <gp_Sphere.hxx>
#include <gp_Torus.hxx>

// module includes
#include <GProp.hxx>
#include <GProp_CelGProps.hxx>
#include <GProp_EquaType.hxx>
#include <GProp_GProps.hxx>
#include <GProp_PEquation.hxx>
#include <GProp_PGProps.hxx>
#include <GProp_PrincipalProps.hxx>
#include <GProp_SelGProps.hxx>
#include <GProp_UndefinedAxis.hxx>
#include <GProp_ValueType.hxx>
#include <GProp_VelGProps.hxx>

// template related includes


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

// user-defined inclusion per module

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


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

// user-defined inclusion per module in the body

// enums
    py::enum_<GProp_EquaType>(m, "GProp_EquaType",R"#(None)#")
        .value("GProp_Plane",GProp_EquaType::GProp_Plane)
        .value("GProp_Line",GProp_EquaType::GProp_Line)
        .value("GProp_Point",GProp_EquaType::GProp_Point)
        .value("GProp_Space",GProp_EquaType::GProp_Space)
        .value("GProp_None",GProp_EquaType::GProp_None).export_values();
    py::enum_<GProp_ValueType>(m, "GProp_ValueType",R"#(Algorithmes :)#")
        .value("GProp_Mass",GProp_ValueType::GProp_Mass)
        .value("GProp_CenterMassX",GProp_ValueType::GProp_CenterMassX)
        .value("GProp_CenterMassY",GProp_ValueType::GProp_CenterMassY)
        .value("GProp_CenterMassZ",GProp_ValueType::GProp_CenterMassZ)
        .value("GProp_InertiaXX",GProp_ValueType::GProp_InertiaXX)
        .value("GProp_InertiaYY",GProp_ValueType::GProp_InertiaYY)
        .value("GProp_InertiaZZ",GProp_ValueType::GProp_InertiaZZ)
        .value("GProp_InertiaXY",GProp_ValueType::GProp_InertiaXY)
        .value("GProp_InertiaXZ",GProp_ValueType::GProp_InertiaXZ)
        .value("GProp_InertiaYZ",GProp_ValueType::GProp_InertiaYZ)
        .value("GProp_Unknown",GProp_ValueType::GProp_Unknown).export_values();

//Python trampoline classes

// pre-register typdefs+classes (topologically sorted)
    py::class_<GProp , shared_ptr<GProp>  >(m,"GProp",R"#(This package defines algorithms to compute the global properties of a set of points, a curve, a surface, a solid (non infinite region of space delimited with geometric entities), a compound geometric system (heterogeneous composition of the previous entities).)#");
    py::class_<GProp_GProps , shared_ptr<GProp_GProps>  >(m,"GProp_GProps",R"#(Implements a general mechanism to compute the global properties of a "compound geometric system" in 3d space by composition of the global properties of "elementary geometric entities" such as (curve, surface, solid, set of points). It is possible to compose the properties of several "compound geometric systems" too.)#");
    py::class_<GProp_PEquation , shared_ptr<GProp_PEquation>  >(m,"GProp_PEquation",R"#(A framework to analyze a collection - or cloud - of points and to verify if they are coincident, collinear or coplanar within a given precision. If so, it also computes the mean point, the mean line or the mean plane of the points. If not, it computes the minimal box which includes all the points.)#");
    py::class_<GProp_PrincipalProps , shared_ptr<GProp_PrincipalProps>  >(m,"GProp_PrincipalProps",R"#(A framework to present the principal properties of inertia of a system of which global properties are computed by a GProp_GProps object. There is always a set of axes for which the products of inertia of a geometric system are equal to 0; i.e. the matrix of inertia of the system is diagonal. These axes are the principal axes of inertia. Their origin is coincident with the center of mass of the system. The associated moments are called the principal moments of inertia. This sort of presentation object is created, filled and returned by the function PrincipalProperties for any GProp_GProps object, and can be queried to access the result. Note: The system whose principal properties of inertia are returned by this framework is referred to as the current system. The current system, however, is retained neither by this presentation framework nor by the GProp_GProps object which activates it.)#");
    py::class_<GProp_CelGProps , shared_ptr<GProp_CelGProps>  , GProp_GProps >(m,"GProp_CelGProps",R"#(Computes the global properties of bounded curves in 3D space. It can be an elementary curve from package gp such as Lin, Circ, Elips, Parab .)#");
    py::class_<GProp_PGProps , shared_ptr<GProp_PGProps>  , GProp_GProps >(m,"GProp_PGProps",R"#(A framework for computing the global properties of a set of points. A point mass is attached to each point. The global mass of the system is the sum of each individual mass. By default, the point mass is equal to 1 and the mass of a system composed of N points is equal to N. Warning A framework of this sort provides functions to handle sets of points easily. But, like any GProp_GProps object, by using the Add function, it can theoretically bring together the computed global properties and those of a system more complex than a set of points . The mass of each point and the density of each component of the composed system must be coherent. Note that this coherence cannot be checked. Nonetheless, you are advised to restrict your use of a GProp_PGProps object to a set of points and to create a GProp_GProps object in order to bring together global properties of different systems.)#");
    py::class_<GProp_SelGProps , shared_ptr<GProp_SelGProps>  , GProp_GProps >(m,"GProp_SelGProps",R"#(Computes the global properties of a bounded elementary surface in 3d (surface of the gp package))#");
    py::class_<GProp_VelGProps , shared_ptr<GProp_VelGProps>  , GProp_GProps >(m,"GProp_VelGProps",R"#(Computes the global properties and the volume of a geometric solid (3D closed region of space) The solid can be elementary(definition in the gp package))#");

};

// user-defined post-inclusion per module

// user-defined post