Marking(Point, Line, Polygon) in sceneView

363
1
11-09-2021 02:57 AM
NareshBansal
New Contributor II

Hiii,

Sir , How to do marking (Like: Point, Line, Polygon) in sceneView arcgis runtime for java Application. Plz provide sample code if available....

Tags (1)
0 Kudos
1 Reply
MarkBaird
Esri Regular Contributor

Take a look at graphics overlays, I believe these are what you need to be using.

This doc introduces the subject of graphics overlays in scenes.

There are also samples which show some of the concepts.  I've included samples for 2D and 3D apps.  Remember that the graphics are created in the same way for 2D and 3D, just remember that you might want to add a Z value for 3D.

https://github.com/Esri/arcgis-runtime-samples-java/tree/main/display_information/add-graphics-with-...

https://developers.arcgis.com/java/scenes-3d/add-graphics-to-a-scene-view/

https://github.com/Esri/arcgis-runtime-samples-java/tree/main/scene/surface-placement

https://github.com/Esri/arcgis-runtime-samples-java/tree/main/scene/extrude-graphics

https://github.com/Esri/arcgis-runtime-samples-java/tree/main/scene/distance-composite-symbol

https://github.com/Esri/arcgis-runtime-samples-java/tree/main/scene/animate-3d-graphic

https://github.com/Esri/arcgis-runtime-samples-java/tree/main/scene/symbols

Hopefully there is enough here to get you started.  You may need to consider the surface placement modes you use which are in one of the samples above.

Mark

 

0 Kudos