Class: Qgs3DMapExportSettings

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

Added in version 3.16.

class qgis._3d.Qgs3DMapExportSettings[source]

Bases: object

__init__()

Constructor

__init__(a0: Qgs3DMapExportSettings)
Parameters:

a0 (Qgs3DMapExportSettings)

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

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 scene’s .obj file folder path

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)

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

terrainTextureResolution(self) int[source]

Returns the terrain texture resolution

Return type:

int

terrrainResolution(self) int[source]

Returns the terrain resolution

Return type:

int