diff --git a/libs/math/include/mrpt/math/TBoundingBox.h b/libs/math/include/mrpt/math/TBoundingBox.h index 5211573147..15f556cc77 100644 --- a/libs/math/include/mrpt/math/TBoundingBox.h +++ b/libs/math/include/mrpt/math/TBoundingBox.h @@ -28,7 +28,7 @@ struct TBoundingBox_ { enum class CTOR_FLAGS { - None = 0, + NoFlags = 0, AllowUnordered }; @@ -43,7 +43,7 @@ struct TBoundingBox_ TBoundingBox_( const mrpt::math::TPoint3D_& Min, const mrpt::math::TPoint3D_& Max, - const CTOR_FLAGS f = CTOR_FLAGS::None) : + const CTOR_FLAGS f = CTOR_FLAGS::NoFlags) : min(Min), max(Max) { if (f != CTOR_FLAGS::AllowUnordered) diff --git a/python/src/mrpt/math/TBoundingBox.cpp b/python/src/mrpt/math/TBoundingBox.cpp index ce62c72350..dbcee077a9 100644 --- a/python/src/mrpt/math/TBoundingBox.cpp +++ b/python/src/mrpt/math/TBoundingBox.cpp @@ -44,7 +44,7 @@ void bind_mrpt_math_TBoundingBox(std::function< pybind11::module &(std::string c cl.def( pybind11::init( [](mrpt::math::TBoundingBox_ const &o){ return new mrpt::math::TBoundingBox_(o); } ) ); pybind11::enum_::CTOR_FLAGS>(cl, "CTOR_FLAGS", "") - .value("None", mrpt::math::TBoundingBox_::CTOR_FLAGS::None) + .value("NoFlags", mrpt::math::TBoundingBox_::CTOR_FLAGS::NoFlags) .value("AllowUnordered", mrpt::math::TBoundingBox_::CTOR_FLAGS::AllowUnordered); cl.def_readwrite("min", &mrpt::math::TBoundingBox_::min); @@ -70,7 +70,7 @@ void bind_mrpt_math_TBoundingBox(std::function< pybind11::module &(std::string c cl.def( pybind11::init( [](mrpt::math::TBoundingBox_ const &o){ return new mrpt::math::TBoundingBox_(o); } ) ); pybind11::enum_::CTOR_FLAGS>(cl, "CTOR_FLAGS", "") - .value("None", mrpt::math::TBoundingBox_::CTOR_FLAGS::None) + .value("NoFlags", mrpt::math::TBoundingBox_::CTOR_FLAGS::NoFlags) .value("AllowUnordered", mrpt::math::TBoundingBox_::CTOR_FLAGS::AllowUnordered); cl.def_readwrite("min", &mrpt::math::TBoundingBox_::min); diff --git a/python/stubs-out/mrpt/pymrpt/mrpt/math.pyi b/python/stubs-out/mrpt/pymrpt/mrpt/math.pyi index ff43583a6e..68c9208347 100644 --- a/python/stubs-out/mrpt/pymrpt/mrpt/math.pyi +++ b/python/stubs-out/mrpt/pymrpt/mrpt/math.pyi @@ -1692,7 +1692,7 @@ class TBoundingBox_double_t: __doc__: ClassVar[str] = ... # read-only __members__: ClassVar[dict] = ... # read-only AllowUnordered: ClassVar[TBoundingBox_double_t.CTOR_FLAGS] = ... - None: ClassVar[TBoundingBox_double_t.CTOR_FLAGS] = ... + NoFlags: ClassVar[TBoundingBox_double_t.CTOR_FLAGS] = ... __entries: ClassVar[dict] = ... def __init__(self, value: int) -> None: ... def __eq__(self, other: object) -> bool: ... @@ -1743,7 +1743,7 @@ class TBoundingBox_float_t: __doc__: ClassVar[str] = ... # read-only __members__: ClassVar[dict] = ... # read-only AllowUnordered: ClassVar[TBoundingBox_float_t.CTOR_FLAGS] = ... - None: ClassVar[TBoundingBox_float_t.CTOR_FLAGS] = ... + NoFlags: ClassVar[TBoundingBox_float_t.CTOR_FLAGS] = ... __entries: ClassVar[dict] = ... def __init__(self, value: int) -> None: ... def __eq__(self, other: object) -> bool: ...