MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / cstrEnums

Function cstrEnums

python/src/Construct/LNEnums.cpp:15–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace py = pybind11;
15void cstrEnums(py::module_&m)
16{
17 py::enum_<LNLib::CurveCurveIntersectionType>(m, "CurveCurveIntersectionType")
18 .value("Intersecting", LNLib::CurveCurveIntersectionType::Intersecting)
19 .value("Parallel", LNLib::CurveCurveIntersectionType::Parallel)
20 .value("Coincident", LNLib::CurveCurveIntersectionType::Coincident)
21 .value("Skew", LNLib::CurveCurveIntersectionType::Skew)
22 .export_values();
23
24 py::enum_<LNLib::LinePlaneIntersectionType>(m, "LinePlaneIntersectionType")
25 .value("Intersecting", LNLib::LinePlaneIntersectionType::Intersecting)
26 .value("Parallel", LNLib::LinePlaneIntersectionType::Parallel)
27 .value("On", LNLib::LinePlaneIntersectionType::On)
28 .export_values();
29
30 py::enum_<LNLib::CurveNormal>(m, "CurveNormal")
31 .value("Normal", LNLib::CurveNormal::Normal)
32 .value("Binormal", LNLib::CurveNormal::Binormal)
33 .export_values();
34
35 py::enum_<LNLib::SurfaceDirection>(m, "SurfaceDirection")
36 .value("All", LNLib::SurfaceDirection::All)
37 .value("UDirection", LNLib::SurfaceDirection::UDirection)
38 .value("VDirection", LNLib::SurfaceDirection::VDirection)
39 .export_values();
40
41 py::enum_<LNLib::SurfaceCurvature>(m, "SurfaceCurvature")
42 .value("Maximum", LNLib::SurfaceCurvature::Maximum)
43 .value("Minimum", LNLib::SurfaceCurvature::Minimum)
44 .value("Gauss", LNLib::SurfaceCurvature::Gauss)
45 .value("Mean", LNLib::SurfaceCurvature::Mean)
46 .value("Abs", LNLib::SurfaceCurvature::Abs)
47 .value("Rms", LNLib::SurfaceCurvature::Rms)
48 .export_values();
49
50 py::enum_<LNLib::IntegratorType>(m, "IntegratorType")
51 .value("Simpson", LNLib::IntegratorType::Simpson)
52 .value("GaussLegendre", LNLib::IntegratorType::GaussLegendre)
53 .value("Chebyshev", LNLib::IntegratorType::Chebyshev)
54 .export_values();
55
56 py::enum_<LNLib::OffsetType>(m, "OffsetType")
57 .value("TillerAndHanson", LNLib::OffsetType::TillerAndHanson)
58 .value("PieglAndTiller", LNLib::OffsetType::PieglAndTiller)
59 .export_values();
60
61 py::enum_<LNLib::ExtensionType>(m, "ExtensionType")
62 .value("Tangent", LNLib::ExtensionType::Tangent)
63 .value("Arc", LNLib::ExtensionType::Arc)
64 .value("Natural", LNLib::ExtensionType::Natural)
65 .export_values();
66
67 py::enum_<LNLib::VolumeDirection>(m, "VolumeDirection")
68 .value("U", LNLib::VolumeDirection::U)
69 .value("V", LNLib::VolumeDirection::V)
70 .value("W", LNLib::VolumeDirection::W)
71 .export_values();
72}

Callers 1

constructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected