Class: QgsTiledSceneBoundingVolume¶
Represents a bounding volume for a tiled scene.
Added in version 3.34.
Methods
Returns a new geometry representing the 2-dimensional X/Y center slice of the volume.  | 
|
Returns the axis aligned bounding box of the volume.  | 
|
Returns the volume's oriented box.  | 
|
Returns   | 
|
Applies a transform to the bounding volume.  | 
- class qgis.core.QgsTiledSceneBoundingVolume[source]¶
 Bases:
object- __init__(box: QgsOrientedBox3D = QgsOrientedBox3D())
 Constructor for QgsTiledSceneBoundingVolume, with the specified oriented
box.- Parameters:
 box (
QgsOrientedBox3D= QgsOrientedBox3D())
- __init__(a0: QgsTiledSceneBoundingVolume)
 - Parameters:
 
- as2DGeometry(self, transform: QgsCoordinateTransform = QgsCoordinateTransform(), direction: Qgis.TransformDirection = Qgis.TransformDirection.Forward) QgsAbstractGeometry | None[source]¶
 Returns a new geometry representing the 2-dimensional X/Y center slice of the volume.
Caller takes ownership of the returned geometry.
The optional
transformanddirectionarguments should be used whenever the volume needs to be transformed into a specific destination CRS, in order to correctly handle 3D coordinate transforms.- Parameters:
 transform (
QgsCoordinateTransform= QgsCoordinateTransform())direction (Qgis.TransformDirection = Qgis.TransformDirection.Forward)
- Return type:
 Optional[QgsAbstractGeometry]
- bounds(self, transform: QgsCoordinateTransform = QgsCoordinateTransform(), direction: Qgis.TransformDirection = Qgis.TransformDirection.Forward) QgsBox3D[source]¶
 Returns the axis aligned bounding box of the volume.
The optional
transformanddirectionarguments should be used whenever the volume needs to be transformed into a specific destination CRS, in order to correctly handle 3D coordinate transforms.- Parameters:
 transform (
QgsCoordinateTransform= QgsCoordinateTransform())direction (Qgis.TransformDirection = Qgis.TransformDirection.Forward)
- Return type:
 
- box(self) QgsOrientedBox3D[source]¶
 Returns the volume’s oriented box.
- Return type:
 
- intersects(self, box: QgsOrientedBox3D) bool[source]¶
 Returns
Trueif this bounds intersects the specifiedbox.- Parameters:
 box (QgsOrientedBox3D)
- Return type:
 bool
- transform(self, transform: QgsMatrix4x4)[source]¶
 Applies a
transformto the bounding volume.- Parameters:
 transform (QgsMatrix4x4)