Class: QgsTiledSceneBoundingVolume

class qgis.core.QgsTiledSceneBoundingVolume

Bases: sip.wrapper

Represents a bounding volume for a tiled scene.

Added in version 3.34.

QgsTiledSceneBoundingVolume(box: QgsOrientedBox3D = QgsOrientedBox3D()) Constructor for QgsTiledSceneBoundingVolume, with the specified oriented box.

QgsTiledSceneBoundingVolume(QgsTiledSceneBoundingVolume)

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.

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 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:

QgsAbstractGeometry

bounds(self, transform: QgsCoordinateTransform = QgsCoordinateTransform(), direction: Qgis.TransformDirection = Qgis.TransformDirection.Forward) QgsBox3D

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

Returns the volume’s oriented box.

Return type:

QgsOrientedBox3D

intersects(self, box: QgsOrientedBox3D) bool

Returns True if this bounds intersects the specified box.

Parameters:

box (QgsOrientedBox3D)

Return type:

bool

transform(self, transform: QgsMatrix4x4)

Applies a transform to the bounding volume.

Parameters:

transform (QgsMatrix4x4)