Class: Qgs3DMapExportSettings

Manages the various settings the user can choose from when exporting a 3D scene.

Added in version 3.16.

Constructor

__init__

Methods

exportFileUri

Returns the full file uri where the 3D scene will be exported.

exportFormat

Returns the export format for the 3D scene.

exportNormals

Returns whether normals will be exported

exportTextures

Returns whether textures will be exported

scale

Returns the scale of the exported model

sceneFolderPath

Returns the scene folder path

sceneName

Returns the scene name

setExportFormat

Sets the export format for the 3D scene.

setExportNormals

Sets whether normals should be exported

setExportTextures

Sets whether textures will be exported

setScale

Sets the scale of exported model

setSceneFolderPath

Sets the folder path where exported 3D scene files will be saved.

setSceneName

Sets the scene name

setSmoothEdges

Sets whether triangles edges will look smooth

setTerrainExportEnabled

Sets whether terrain export is enabled.

setTerrainResolution

Sets the terrain resolution

setTerrainTextureResolution

Sets the terrain texture resolution

smoothEdges

Returns whether triangles edges will look smooth

terrainExportEnabled

Returns whether terrain export is enabled.

terrainTextureResolution

Returns the terrain texture resolution

terrrainResolution

Returns the terrain resolution

class qgis._3d.Qgs3DMapExportSettings[source]

Bases: object

__init__()

Constructor

__init__(a0: Qgs3DMapExportSettings)
Parameters:

a0 (Qgs3DMapExportSettings)

exportFileUri(self) str[source]

Returns the full file uri where the 3D scene will be exported.

Added in version 4.2.

Return type:

str

exportFormat(self) Qgis.Export3DSceneFormat[source]

Returns the export format for the 3D scene.

Added in version 4.2.

Return type:

Qgis.Export3DSceneFormat

exportNormals(self) bool[source]

Returns whether normals will be exported

Return type:

bool

exportTextures(self) bool[source]

Returns whether textures will be exported

Return type:

bool

scale(self) float[source]

Returns the scale of the exported model

Return type:

float

sceneFolderPath(self) str[source]

Returns the scene folder path

Return type:

str

sceneName(self) str[source]

Returns the scene name

Return type:

str

setExportFormat(self, exportFormat: Qgis.Export3DSceneFormat)[source]

Sets the export format for the 3D scene.

Added in version 4.2.

Parameters:

exportFormat (Qgis.Export3DSceneFormat)

setExportNormals(self, exportNormals: bool)[source]

Sets whether normals should be exported

Parameters:

exportNormals (bool)

setExportTextures(self, exportTextures: bool)[source]

Sets whether textures will be exported

Parameters:

exportTextures (bool)

setScale(self, scale: float)[source]

Sets the scale of exported model

Parameters:

scale (float)

setSceneFolderPath(self, sceneFolderPath: str | None)[source]

Sets the folder path where exported 3D scene files will be saved.

Parameters:

sceneFolderPath (Optional[str])

setSceneName(self, sceneName: str | None)[source]

Sets the scene name

Parameters:

sceneName (Optional[str])

setSmoothEdges(self, smoothEdges: bool)[source]

Sets whether triangles edges will look smooth

Parameters:

smoothEdges (bool)

setTerrainExportEnabled(self, enabled: bool)[source]

Sets whether terrain export is enabled.

Added in version 4.0.

Parameters:

enabled (bool)

setTerrainResolution(self, resolution: int)[source]

Sets the terrain resolution

Parameters:

resolution (int)

setTerrainTextureResolution(self, resolution: int)[source]

Sets the terrain texture resolution

Parameters:

resolution (int)

smoothEdges(self) bool[source]

Returns whether triangles edges will look smooth

Return type:

bool

terrainExportEnabled(self) bool[source]

Returns whether terrain export is enabled. It terrain export is disabled, the terrain resolution and terrain texture resolution parameters have no effect.

Added in version 4.0.

Return type:

bool

terrainTextureResolution(self) int[source]

Returns the terrain texture resolution

Return type:

int

terrrainResolution(self) int[source]

Returns the terrain resolution

Return type:

int