Label | Explanation | Data Type |
Input Dataset
| The input integrated mesh scene layer package. | File |
Output Dataset
| The output scene layer package. | File |
Texture Optimization (Optional) | Specifies the textures that will be optimized according to the target platform where the scene layer package will be used. Caution:Optimizations that include KTX2 may take significant time to process. For fastest results, use the Desktop or None options.
| String |
Summary
Generates a new scene layer package with properly defined levels of detail.
Only the finest level of detail is maintained; all other levels of detail are discarded. The finest level of detail is reorganized into tiles that generate new coarse levels of detail.
Usage
Use this tool for integrated mesh scene layer packages generated from third-party software that have poorly defined levels of detail. This includes scene layer packages with a single level of detail generated from other applications.
Use this tool with output from the Create Integrated Mesh Scene Layer Content tool if the original OpenSceneGraph binary (OSGB) data had missing levels of detail or poorly defined levels of detail.
Integrated mesh is the only supported scene layer type.
Parameters
arcpy.management.GenerateLevelOfDetail(in_dataset, out_dataset, {texture_optimization})
Name | Explanation | Data Type |
in_dataset | The input integrated mesh scene layer package. | File |
out_dataset | The output scene layer package. | File |
texture_optimization (Optional) | Specifies the textures that will be optimized according to the target platform where the scene layer package will be used. Caution:Optimizations that include KTX2 may take significant time to process. For fastest results, use the Desktop or None options.
| String |
Code sample
The following script demonstrates how to use the GenerateLevelOfDetail function in the Python window.
import arcpy
arcpy.management.GenerateLevelOfDetail(
in_dataset=r"C:\test\mesh.slpk",
out_dataset=r"C:\test\meshLOD.slpk",
texture_optimization="Desktop"
)
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes