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.
Usage
Use this tool for integrated mesh scene layer packages generated from third-party software that have a single level of detail. This includes scene layer packages generated from FME by Safe Software or ArcGIS Data Interoperability.
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