Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename TBoundingBox None Ctor flag #1328

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading