feat(tdcgal/enums.cpp): add Sign Orientation etc
This commit is contained in:
parent
b82011ef76
commit
9e1373b126
|
|
@ -0,0 +1,44 @@
|
|||
#include <CGAL/enum.h>
|
||||
|
||||
#include <pybind11/operators.h>
|
||||
#include <pybind11/pybind11.h>
|
||||
|
||||
#include "../cgal.hpp"
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
void init_enums(py::module &m) {
|
||||
|
||||
py::enum_<CGAL::Angle>(m, "Angle")
|
||||
.value("OBTUSE", CGAL::OBTUSE)
|
||||
.value("RIGHT", CGAL::RIGHT)
|
||||
.value("ACUTE", CGAL::ACUTE);
|
||||
|
||||
py::enum_<CGAL::Bounded_side>(m, "Bounded_side")
|
||||
.value("ON_BOUNDED_SIDE", CGAL::ON_BOUNDED_SIDE)
|
||||
.value("ON_BOUNDARY", CGAL::ON_BOUNDARY)
|
||||
.value("ON_UNBOUNDED_SIDE", CGAL::ON_UNBOUNDED_SIDE)
|
||||
|
||||
py::enum_<CGAL::Comparison_result>(m, "Comparison_result")
|
||||
.value("SMALLER", CGAL::SMALLER)
|
||||
.value("EQUAL", CGAL::EQUAL)
|
||||
.value("LARGER", CGAL::LARGER);
|
||||
|
||||
py::enum_<CGAL::Sign>(m, "Sign")
|
||||
.value("NEGATIVE", CGAL::NEGATIVE)
|
||||
.value("ZERO", CGAL::ZERO)
|
||||
.value("POSITIVE", CGAL::POSITIVE);
|
||||
|
||||
py::enum_<CGAL::Orientation>(m, "Orientation")
|
||||
.value("LEFT_TURN", CGAL::LEFT_TURN)
|
||||
.value("RIGHT_TURN", CGAL::RIGHT_TURN)
|
||||
.value("COLLINEAR", CGAL::COLLINEAR)
|
||||
.value("CLOCKWISE", CGAL::CLOCKWISE)
|
||||
.value("COUNTERCLOCKWISE", CGAL::COUNTERCLOCKWISE)
|
||||
.value("COPLANAR", CGAL::COPLANAR);
|
||||
|
||||
py::enum_<CGAL::Oriented_side>(m, "Oriented_side")
|
||||
.value("ON_ORIENTED_BOUNDARY", CGAL::ON_ORIENTED_BOUNDARY)
|
||||
.value("ON_NEGATIVE_SIDE", CGAL::ON_NEGATIVE_SIDE)
|
||||
.value("ON_POSITIVE_SIDE", CGAL::ON_POSITIVE_SIDE);
|
||||
}
|
||||
Loading…
Reference in New Issue