File: GeomAbs_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 (111 lines) | stat: -rw-r--r-- 6,572 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

// 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>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>

// module includes
#include <GeomAbs_BSplKnotDistribution.hxx>
#include <GeomAbs_CurveType.hxx>
#include <GeomAbs_IsoType.hxx>
#include <GeomAbs_JoinType.hxx>
#include <GeomAbs_Shape.hxx>
#include <GeomAbs_SurfaceType.hxx>

// template related includes


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

// user-defined inclusion per module

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


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

// user-defined inclusion per module in the body

// enums
    py::enum_<GeomAbs_CurveType>(m, "GeomAbs_CurveType",R"#(Identifies the type of a curve.)#")
        .value("GeomAbs_Line",GeomAbs_CurveType::GeomAbs_Line)
        .value("GeomAbs_Circle",GeomAbs_CurveType::GeomAbs_Circle)
        .value("GeomAbs_Ellipse",GeomAbs_CurveType::GeomAbs_Ellipse)
        .value("GeomAbs_Hyperbola",GeomAbs_CurveType::GeomAbs_Hyperbola)
        .value("GeomAbs_Parabola",GeomAbs_CurveType::GeomAbs_Parabola)
        .value("GeomAbs_BezierCurve",GeomAbs_CurveType::GeomAbs_BezierCurve)
        .value("GeomAbs_BSplineCurve",GeomAbs_CurveType::GeomAbs_BSplineCurve)
        .value("GeomAbs_OffsetCurve",GeomAbs_CurveType::GeomAbs_OffsetCurve)
        .value("GeomAbs_OtherCurve",GeomAbs_CurveType::GeomAbs_OtherCurve).export_values();
    py::enum_<GeomAbs_JoinType>(m, "GeomAbs_JoinType",R"#(Characterizes the type of a join, built by an algorithm for constructing parallel curves, between two consecutive arcs of a contour parallel to a given contour.)#")
        .value("GeomAbs_Arc",GeomAbs_JoinType::GeomAbs_Arc)
        .value("GeomAbs_Tangent",GeomAbs_JoinType::GeomAbs_Tangent)
        .value("GeomAbs_Intersection",GeomAbs_JoinType::GeomAbs_Intersection).export_values();
    py::enum_<GeomAbs_IsoType>(m, "GeomAbs_IsoType",R"#(this enumeration describes if a curve is an U isoparaetric or V isoparametric)#")
        .value("GeomAbs_IsoU",GeomAbs_IsoType::GeomAbs_IsoU)
        .value("GeomAbs_IsoV",GeomAbs_IsoType::GeomAbs_IsoV)
        .value("GeomAbs_NoneIso",GeomAbs_IsoType::GeomAbs_NoneIso).export_values();
    py::enum_<GeomAbs_SurfaceType>(m, "GeomAbs_SurfaceType",R"#(None)#")
        .value("GeomAbs_Plane",GeomAbs_SurfaceType::GeomAbs_Plane)
        .value("GeomAbs_Cylinder",GeomAbs_SurfaceType::GeomAbs_Cylinder)
        .value("GeomAbs_Cone",GeomAbs_SurfaceType::GeomAbs_Cone)
        .value("GeomAbs_Sphere",GeomAbs_SurfaceType::GeomAbs_Sphere)
        .value("GeomAbs_Torus",GeomAbs_SurfaceType::GeomAbs_Torus)
        .value("GeomAbs_BezierSurface",GeomAbs_SurfaceType::GeomAbs_BezierSurface)
        .value("GeomAbs_BSplineSurface",GeomAbs_SurfaceType::GeomAbs_BSplineSurface)
        .value("GeomAbs_SurfaceOfRevolution",GeomAbs_SurfaceType::GeomAbs_SurfaceOfRevolution)
        .value("GeomAbs_SurfaceOfExtrusion",GeomAbs_SurfaceType::GeomAbs_SurfaceOfExtrusion)
        .value("GeomAbs_OffsetSurface",GeomAbs_SurfaceType::GeomAbs_OffsetSurface)
        .value("GeomAbs_OtherSurface",GeomAbs_SurfaceType::GeomAbs_OtherSurface).export_values();
    py::enum_<GeomAbs_Shape>(m, "GeomAbs_Shape",R"#(Provides information about the continuity of a curve: - C0: only geometric continuity. - G1: for each point on the curve, the tangent vectors "on the right" and "on the left" are collinear with the same orientation. - C1: continuity of the first derivative. The "C1" curve is also "G1" but, in addition, the tangent vectors " on the right" and "on the left" are equal. - G2: for each point on the curve, the normalized normal vectors "on the right" and "on the left" are equal. - C2: continuity of the second derivative. - C3: continuity of the third derivative. - CN: continuity of the N-th derivative, whatever is the value given for N (infinite order of continuity). Also provides information about the continuity of a surface: - C0: only geometric continuity. - C1: continuity of the first derivatives; any isoparametric (in U or V) of a surface "C1" is also "C1". - G2: for BSpline curves only; "on the right" and "on the left" of a knot the computation of the "main curvature radii" and the "main directions" (when they exist) gives the same result. - C2: continuity of the second derivative. - C3: continuity of the third derivative. - CN: continuity of any N-th derivative, whatever is the value given for N (infinite order of continuity). We may also say that a surface is "Ci" in u, and "Cj" in v to indicate the continuity of its derivatives up to the order i in the u parametric direction, and j in the v parametric direction.)#")
        .value("GeomAbs_C0",GeomAbs_Shape::GeomAbs_C0)
        .value("GeomAbs_G1",GeomAbs_Shape::GeomAbs_G1)
        .value("GeomAbs_C1",GeomAbs_Shape::GeomAbs_C1)
        .value("GeomAbs_G2",GeomAbs_Shape::GeomAbs_G2)
        .value("GeomAbs_C2",GeomAbs_Shape::GeomAbs_C2)
        .value("GeomAbs_C3",GeomAbs_Shape::GeomAbs_C3)
        .value("GeomAbs_CN",GeomAbs_Shape::GeomAbs_CN).export_values();
    py::enum_<GeomAbs_BSplKnotDistribution>(m, "GeomAbs_BSplKnotDistribution",R"#(This enumeration is used in the classes BSplineCurve and BSplineSurface to describe the repartition of set of knots. (comments in classes BSplineCurve and BSplineSurface))#")
        .value("GeomAbs_NonUniform",GeomAbs_BSplKnotDistribution::GeomAbs_NonUniform)
        .value("GeomAbs_Uniform",GeomAbs_BSplKnotDistribution::GeomAbs_Uniform)
        .value("GeomAbs_QuasiUniform",GeomAbs_BSplKnotDistribution::GeomAbs_QuasiUniform)
        .value("GeomAbs_PiecewiseBezier",GeomAbs_BSplKnotDistribution::GeomAbs_PiecewiseBezier).export_values();

//Python trampoline classes

// pre-register typdefs+classes (topologically sorted)

};

// user-defined post-inclusion per module

// user-defined post