28.1.1. 3D Tiles
NEW in 3.34
28.1.1.1. Convert B3DM to GLTF
Converts files from the legacy .B3DM
format to .GLTF
or .GLB
.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input B3DM |
|
[3D Tile] |
Input file to convert. |
Output file |
|
[3D Tile] Default: |
Specify the output 3D tile file. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Output file |
|
[3D Tile] |
Output layer in |
Python code
Algorithm ID: native:b3dmtogltf
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
28.1.1.2. Convert GLTF to vector features
Converts .GLTF
or .GLB
file contents to standard vector layer formats.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input GLTF |
|
[3D Tile] |
Input file to convert. |
Output polygons Optional |
|
[vector: polygon] Default: |
Specify the output vector layer to store polygon features. One of:
The file encoding can also be changed here. |
Output lines Optional |
|
[vector: line] Default: |
Specify the output vector layer to store line features. One of:
The file encoding can also be changed here. |
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Output polygons |
|
[vector: polygon] |
A vector layer storing the polygon features in input layer. |
Output lines |
|
[vector: line] |
A vector layer storing the line features in input layer. |
Python code
Algorithm ID: native:gltftovector
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.