Class: QgsTiledSceneBoundingVolume¶
- class qgis.core.QgsTiledSceneBoundingVolume¶
Bases:
sip.wrapper
Represents a bounding volume for a tiled scene.
New in version 3.34.
QgsTiledSceneBoundingVolume(box:
QgsOrientedBox3D
= QgsOrientedBox3D()) Constructor forQgsTiledSceneBoundingVolume
, with the specified orientedbox
.QgsTiledSceneBoundingVolume(
QgsTiledSceneBoundingVolume
)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
True
if this bounds intersects the specifiedbox
.Applies a
transform
to the bounding volume.- as2DGeometry(self, transform: QgsCoordinateTransform = QgsCoordinateTransform(), direction: Qgis.TransformDirection = Qgis.TransformDirection.Forward) QgsAbstractGeometry ¶
Returns a new geometry representing the 2-dimensional X/Y center slice of the volume.
Caller takes ownership of the returned geometry.
The optional
transform
anddirection
arguments 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:
- bounds(self, transform: QgsCoordinateTransform = QgsCoordinateTransform(), direction: Qgis.TransformDirection = Qgis.TransformDirection.Forward) QgsBox3D ¶
Returns the axis aligned bounding box of the volume.
The optional
transform
anddirection
arguments 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 ¶
Returns the volume’s oriented box.
- Return type:
- intersects(self, box: QgsOrientedBox3D) bool ¶
Returns
True
if this bounds intersects the specifiedbox
.- Parameters:
box (QgsOrientedBox3D) –
- Return type:
bool
- transform(self, transform: QgsMatrix4x4)¶
Applies a
transform
to the bounding volume.- Parameters:
transform (QgsMatrix4x4) –