Select to view content in your preferred language

Which method is used to smooth the corners of the polyline

311
1
08-27-2022 11:46 PM
LiChunfeng
Occasional Contributor

Which method is used to smooth the corners of the polyline for flight paths in 3D scenes?

0 Kudos
1 Reply
Shubham_Sharma
Esri Contributor

@LiChunfeng You can use a to GeometryEngine.densifyGeodetic densify the input geometry by creating additional vertices along the geometry, using a geodesic curve. API Reference

val pathGeometry = GeometryEngine.densifyGeodetic(
polyLine,
1.0, // maxSegmentLength
unitOfMeasurement, // LinearUnit
GeodeticCurveType.GEODESIC
)

You can set up different types of curves: https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/geometry/Geodet...

Android Sample: https://github.com/Esri/arcgis-runtime-samples-android/tree/main/kotlin/geodesic-operations

0 Kudos