Class: QgsTiledSceneBoundingVolume

Represents a bounding volume for a tiled scene.

Added in version 3.34.

Methods

as2DGeometry

Returns a new geometry representing the 2-dimensional X/Y center slice of the volume.

bounds

Returns the axis aligned bounding box of the volume.

box

Returns the volume's oriented box.

intersects

Returns True if this bounds intersects the specified box.

transform

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:

a0 (QgsTiledSceneBoundingVolume)

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 transform and direction 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:

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 transform and direction 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:

QgsBox3D

box(self) QgsOrientedBox3D[source]

Returns the volume’s oriented box.

Return type:

QgsOrientedBox3D

intersects(self, box: QgsOrientedBox3D) bool[source]

Returns True if this bounds intersects the specified box.

Parameters:

box (QgsOrientedBox3D)

Return type:

bool

transform(self, transform: QgsMatrix4x4)[source]

Applies a transform to the bounding volume.

Parameters:

transform (QgsMatrix4x4)