22 #include "pybind11/pybind11.h" 45 py::class_<Region, std::unique_ptr<Region>>
cls(mod,
"Region");
49 cls.def(
"clone", [](Region
const &
self) {
return self.clone().release(); });
50 cls.def(
"getBoundingBox", &Region::getBoundingBox);
51 cls.def(
"getBoundingBox3d", &Region::getBoundingBox3d);
52 cls.def(
"getBoundingCircle", &Region::getBoundingCircle);
61 cls.def(
"encode", &python::encode);
66 uint8_t
const *buffer =
reinterpret_cast<uint8_t
const *
>(
67 PYBIND11_BYTES_AS_STRING(bytes.ptr()));
69 static_cast<size_t>(PYBIND11_BYTES_SIZE(bytes.ptr()));
70 return Region::decode(buffer, n).release();
This file declares a class for representing circular regions on the unit sphere.
bool contains(VertexIterator const begin, VertexIterator const end, UnitVector3d const &v)
This file declares a class for representing longitude/latitude angle boxes on the unit sphere...
std::bitset< 3 > Relationship
Relationship describes how two sets are related.
This file declares a class for representing elliptical regions on the unit sphere.
PYBIND11_MODULE(camera, mod)
This file declares a class for representing axis-aligned bounding boxes in ℝ³.
This file declares a class for representing unit vectors in ℝ³.
A base class for image defects.
This file defines an interface for spherical regions.
Relationship relate(VertexIterator const begin, VertexIterator const end, Box const &b)
This file declares a class for representing convex polygons with great circle edges on the unit spher...