-
Notifications
You must be signed in to change notification settings - Fork 220
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
AxisAlignedBox and OrientedBoundingBox improvements #608
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kring this looks good to me, just two small suggestions that I can push a commit for.
@@ -78,4 +78,13 @@ estimateGlobeRectangle(const BoundingVolume& boundingVolume); | |||
CESIUM3DTILESSELECTION_API const CesiumGeospatial::BoundingRegion* | |||
getBoundingRegionFromBoundingVolume(const BoundingVolume& boundingVolume); | |||
|
|||
/** | |||
* @brief Get an oriented bounding box that contains this bounding volume. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @brief Get an oriented bounding box that contains this bounding volume. | |
* @brief Returns an oriented bounding box that contains the given {@link BoundingVolume}. |
Nitpick, just for consistency with the other documentation in this file.
@@ -49,8 +50,9 @@ class CESIUMGEOMETRY_API OrientedBoundingBox final { | |||
} | |||
|
|||
/** | |||
* @brief Gets the transformation matrix, to rotate and scale the box to the | |||
* right position and size. | |||
* @brief Gets he three orthogonal half-axes of the bounding box. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @brief Gets he three orthogonal half-axes of the bounding box. | |
* @brief Gets the three orthogonal half-axes of the bounding box. |
merging now that CI has passed, thanks @kring ! |
From the changelog:
Additions 🎉
getOrientedBoundingBoxFromBoundingVolume
to theCesium3DTilesSelection
namespace.transform
andtoAxisAligned
methods toOrientedBoundingBox
.Fixes 🔧
center
field ofAxisAlignedBox
to be incorrect.