8 #include <pybind11/native_enum.h>
9 #include <pybind11/pybind11.h>
10 #include <pybind11/stl.h>
11 #include <pybind11/stl_bind.h>
17 using namespace pybind11::literals;
21 py::class_<ccNormalVectors> pyNormalVectors(m,
"ccNormalVectors");
30 {
return self.getNormal(normIndex); },
37 py::native_enum<ccNormalVectors::Orientation>(
38 pyNormalVectors,
"Orientation",
"enum.Enum",
"ccNormalVectors::Orientation.")
39 .value(
"PLUS_X", ccNormalVectors::Orientation::PLUS_X)
40 .value(
"MINUS_X", ccNormalVectors::Orientation::MINUS_X)
41 .value(
"PLUS_Y", ccNormalVectors::Orientation::PLUS_Y)
42 .value(
"MINUS_Y", ccNormalVectors::Orientation::MINUS_Y)
43 .value(
"PLUS_Z", ccNormalVectors::Orientation::MINUS_Z)
44 .value(
"PLUS_BARYCENTER", ccNormalVectors::Orientation::PLUS_BARYCENTER)
45 .value(
"MINUS_BARYCENTER", ccNormalVectors::Orientation::MINUS_BARYCENTER)
46 .value(
"PLUS_ORIGIN", ccNormalVectors::Orientation::PLUS_ORIGIN)
47 .value(
"MINUS_ORIGIN", ccNormalVectors::Orientation::MINUS_ORIGIN)
48 .value(
"PREVIOUS", ccNormalVectors::Orientation::PREVIOUS)
49 .value(
"PLUS_SENSOR_ORIGIN", ccNormalVectors::Orientation::PLUS_SENSOR_ORIGIN)
50 .value(
"MINUS_SENSOR_ORIGIN", ccNormalVectors::Orientation::MINUS_SENSOR_ORIGIN)
51 .value(
"UNDEFINED", ccNormalVectors::Orientation::UNDEFINED)
void define_ccNormalVectors(py::module &m)
Compressed normal vectors handler.
static ccNormalVectors * GetUniqueInstance()
Returns unique instance.
static const CCVector3 & GetNormal(unsigned normIndex)
Static access to ccNormalVectors::getNormal.
static unsigned GetNumberOfVectors()
Returns the number of compressed normal vectors.
static CompressedNormType GetNormIndex(const PointCoordinateType N[])
Returns the compressed index corresponding to a normal vector.
static void ReleaseUniqueInstance()
Releases unique instance.
unsigned int CompressedNormType
Compressed normals type.