-
Notifications
You must be signed in to change notification settings - Fork 215
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
3D Tiles bounding volume improvements #750
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 looks good to me! I had two comments about docs but I'll push a commit for those + merge right after
* If the transformation has non-uniform scale, the bounding sphere's radius | ||
* is scaled by the scale of the transformation's axis with the largest scale. |
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.
This reads a bit more clearly to me?
* If the transformation has non-uniform scale, the bounding sphere's radius | |
* is scaled by the scale of the transformation's axis with the largest scale. | |
* If the transformation has non-uniform scale, the bounding sphere's radius | |
* is scaled by the largest scale value among the transformation's axes. |
* | ||
* @param boundingVolume The bounding volume from which to get the region. | ||
* @return The region, or `std::nullopt` if the bounding volume does not | ||
* define a region. The box is defined in geographic coordinates. |
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.
* define a region. The box is defined in geographic coordinates. | |
* define a region. The region is defined in geographic coordinates. |
This is a PR into #747 so merge that first.
Fixes #647
TileBoundingVolumes
class toCesium3DTilesContent
, making it easier to create the rich bounding volume types inCesiumGeometry
andCesiumGeospatial
from the simplestd::vector
representations inCesium3DTiles
transform
method toCesiumGeometry::BoundingSphere
.toSphere
,fromSphere
, andfromAxisAligned
methods toCesiumGeometry::OrientedBoundingBox
.TileTransform
class toCesium3DTilesContent
, making it easier to create aglm::dmat4
from thetransform
property of aCesium3DTiles::Tile
.