Skip to content

Commit

Permalink
Rename TBoundingBox None Ctor flag
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Meyers committed Dec 6, 2024
1 parent 9ecdc49 commit ec6ba9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions libs/math/include/mrpt/math/TBoundingBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct TBoundingBox_
{
enum class CTOR_FLAGS
{
None = 0,
NoFlags = 0,
AllowUnordered
};

Expand All @@ -43,7 +43,7 @@ struct TBoundingBox_
TBoundingBox_(
const mrpt::math::TPoint3D_<T>& Min,
const mrpt::math::TPoint3D_<T>& Max,
const CTOR_FLAGS f = CTOR_FLAGS::None) :
const CTOR_FLAGS f = CTOR_FLAGS::NoFlags) :
min(Min), max(Max)
{
if (f != CTOR_FLAGS::AllowUnordered)
Expand Down
4 changes: 2 additions & 2 deletions python/src/mrpt/math/TBoundingBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void bind_mrpt_math_TBoundingBox(std::function< pybind11::module &(std::string c
cl.def( pybind11::init( [](mrpt::math::TBoundingBox_<double> const &o){ return new mrpt::math::TBoundingBox_<double>(o); } ) );

pybind11::enum_<mrpt::math::TBoundingBox_<double>::CTOR_FLAGS>(cl, "CTOR_FLAGS", "")
.value("None", mrpt::math::TBoundingBox_<double>::CTOR_FLAGS::None)
.value("NoFlags", mrpt::math::TBoundingBox_<double>::CTOR_FLAGS::NoFlags)
.value("AllowUnordered", mrpt::math::TBoundingBox_<double>::CTOR_FLAGS::AllowUnordered);

cl.def_readwrite("min", &mrpt::math::TBoundingBox_<double>::min);
Expand All @@ -70,7 +70,7 @@ void bind_mrpt_math_TBoundingBox(std::function< pybind11::module &(std::string c
cl.def( pybind11::init( [](mrpt::math::TBoundingBox_<float> const &o){ return new mrpt::math::TBoundingBox_<float>(o); } ) );

pybind11::enum_<mrpt::math::TBoundingBox_<float>::CTOR_FLAGS>(cl, "CTOR_FLAGS", "")
.value("None", mrpt::math::TBoundingBox_<float>::CTOR_FLAGS::None)
.value("NoFlags", mrpt::math::TBoundingBox_<float>::CTOR_FLAGS::NoFlags)
.value("AllowUnordered", mrpt::math::TBoundingBox_<float>::CTOR_FLAGS::AllowUnordered);

cl.def_readwrite("min", &mrpt::math::TBoundingBox_<float>::min);
Expand Down
4 changes: 2 additions & 2 deletions python/stubs-out/mrpt/pymrpt/mrpt/math.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down Expand Up @@ -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: ...
Expand Down

0 comments on commit ec6ba9a

Please sign in to comment.